Changeset 1442 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
- Timestamp:
- 13 Aug 2015, 19:11:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
r1427 r1442 296 296 297 297 // NOTE: This function is never called, but may be useful for developers. 298 Void TComPicYuv::dump (const Char* pFileName, const BitDepths &bitDepths, Bool bAdd) const 299 { 300 FILE* pFile; 301 if (!bAdd) 302 { 303 pFile = fopen (pFileName, "wb"); 304 } 305 else 306 { 307 pFile = fopen (pFileName, "ab"); 308 } 309 298 Void TComPicYuv::dump (const std::string &fileName, const BitDepths &bitDepths, Bool bAdd) const 299 { 300 FILE* pFile = fopen (fileName.c_str(), bAdd?"ab":"wb"); 310 301 311 302 for(Int comp = 0; comp < getNumberValidComponents(); comp++) … … 333 324 } 334 325 335 Void TComPicYuv::dump( Char* pFileName, Bool bAdd, Int bitDepth ) 336 { 337 FILE* pFile; 338 if (!bAdd) 339 { 340 pFile = fopen (pFileName, "wb"); 341 } 342 else 343 { 344 pFile = fopen (pFileName, "ab"); 345 } 326 Void TComPicYuv::dump( const std::string &fileName, const Bool bAdd, const Int bitDepth ) 327 { 328 FILE* pFile = fopen (fileName.c_str(), bAdd?"ab":"wb"); 346 329 347 330 if( bitDepth == 8 ) 348 331 { 349 dump( pFileName, bitDepth, bAdd );332 dump( fileName, bitDepth, bAdd ); 350 333 return; 351 334 } … … 378 361 379 362 #if AUXILIARY_PICTURES 380 Void TComPicYuv::convertToMonochrome( Int bitDepthChroma)363 Void TComPicYuv::convertToMonochrome(const Int bitDepthChroma) 381 364 { 382 365 Pel grayVal = (1 << (bitDepthChroma - 1));
Note: See TracChangeset for help on using the changeset viewer.