Ignore:
Timestamp:
17 Jul 2015, 05:43:37 (9 years ago)
Author:
seregin
Message:

port rev 4322 (g_bitDepth)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComPicYuv.cpp

    r1259 r1287  
    256256
    257257// NOTE: This function is never called, but may be useful for developers.
    258 Void TComPicYuv::dump (const Char* pFileName, Bool bAdd) const
     258Void TComPicYuv::dump (const Char* pFileName, const BitDepths &bitDepths, Bool bAdd) const
    259259{
    260260  FILE* pFile;
     
    272272  {
    273273    const ComponentID  ch     = ComponentID(chan);
    274     const Int          shift  = g_bitDepth[toChannelType(ch)] - 8;
     274    const Int          shift  = bitDepths.recon[toChannelType(ch)] - 8;
    275275    const Int          offset = (shift>0)?(1<<(shift-1)):0;
    276276    const Pel         *pi     = getAddr(ch);
     
    307307  if( bitDepth == 8 )
    308308  {
    309     dump( pFileName, bAdd );
     309    dump( pFileName, bitDepth, bAdd );
    310310    return;
    311311  }
     
    338338
    339339#if AUXILIARY_PICTURES
    340 Void TComPicYuv::convertToMonochrome()
    341 {
    342   Pel grayVal = (1 << (g_bitDepth[CHANNEL_TYPE_CHROMA] - 1));
     340Void TComPicYuv::convertToMonochrome(Int bitDepthChroma)
     341{
     342  Pel grayVal = (1 << (bitDepthChroma - 1));
    343343
    344344  for( UInt comp = 1; comp < getNumberValidComponents(); comp++ )
Note: See TracChangeset for help on using the changeset viewer.