Ignore:
Timestamp:
13 Aug 2015, 19:11:53 (9 years ago)
Author:
seregin
Message:

port rev 4590

File:
1 edited

Legend:

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

    r1427 r1442  
    296296
    297297// 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 
     298Void TComPicYuv::dump (const std::string &fileName, const BitDepths &bitDepths, Bool bAdd) const
     299{
     300  FILE* pFile = fopen (fileName.c_str(), bAdd?"ab":"wb");
    310301
    311302  for(Int comp = 0; comp < getNumberValidComponents(); comp++)
     
    333324}
    334325
    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   }
     326Void TComPicYuv::dump( const std::string &fileName, const Bool bAdd, const Int bitDepth )
     327{
     328  FILE* pFile = fopen (fileName.c_str(), bAdd?"ab":"wb");
    346329
    347330  if( bitDepth == 8 )
    348331  {
    349     dump( pFileName, bitDepth, bAdd );
     332    dump( fileName, bitDepth, bAdd );
    350333    return;
    351334  }
     
    378361
    379362#if AUXILIARY_PICTURES
    380 Void TComPicYuv::convertToMonochrome(Int bitDepthChroma)
     363Void TComPicYuv::convertToMonochrome(const Int bitDepthChroma)
    381364{
    382365  Pel grayVal = (1 << (bitDepthChroma - 1));
Note: See TracChangeset for help on using the changeset viewer.