Ticket #1461: SCC_DPB.patch

File SCC_DPB.patch, 1.3 KB (added by xiaozhongxu0000, 7 years ago)
  • source/App/TAppDecoder/TAppDecTop.cpp

     
    498498
    499499      iterPic++;
    500500    }
     501#if SCC_DPB_FIX
     502        assert(dpbFullness <= maxDecPicBufferingHighestTid - m_cTDecTop.getTwoVersionsOfCurrDecPicFlag());
     503#endif
    501504  }
    502505}
    503506
  • source/Lib/TLibCommon/TypeDef.h

     
    5252// ====================================================================================================================
    5353// Debugging
    5454// ====================================================================================================================
     55#define SCC_DPB_FIX                                                                                     1 ///< add assertion to make sure DPB fullness is below max DPB size when TwoVersionsOfCurrPicFlag is true.
    5556
    5657#define DEBUG_STRING                                      0 ///< When enabled, prints out final decision debug info at encoder and decoder
    5758#define DEBUG_ENCODER_SEARCH_BINS                         0 ///< When enabled, prints out each bin as it is coded during encoder search