Changeset 1287 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
- Timestamp:
- 17 Jul 2015, 05:43:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp
r1259 r1287 256 256 257 257 // NOTE: This function is never called, but may be useful for developers. 258 Void TComPicYuv::dump (const Char* pFileName, Bool bAdd) const258 Void TComPicYuv::dump (const Char* pFileName, const BitDepths &bitDepths, Bool bAdd) const 259 259 { 260 260 FILE* pFile; … … 272 272 { 273 273 const ComponentID ch = ComponentID(chan); 274 const Int shift = g_bitDepth[toChannelType(ch)] - 8;274 const Int shift = bitDepths.recon[toChannelType(ch)] - 8; 275 275 const Int offset = (shift>0)?(1<<(shift-1)):0; 276 276 const Pel *pi = getAddr(ch); … … 307 307 if( bitDepth == 8 ) 308 308 { 309 dump( pFileName, b Add );309 dump( pFileName, bitDepth, bAdd ); 310 310 return; 311 311 } … … 338 338 339 339 #if AUXILIARY_PICTURES 340 Void TComPicYuv::convertToMonochrome( )341 { 342 Pel grayVal = (1 << ( g_bitDepth[CHANNEL_TYPE_CHROMA]- 1));340 Void TComPicYuv::convertToMonochrome(Int bitDepthChroma) 341 { 342 Pel grayVal = (1 << (bitDepthChroma - 1)); 343 343 344 344 for( UInt comp = 1; comp < getNumberValidComponents(); comp++ )
Note: See TracChangeset for help on using the changeset viewer.