Changeset 928 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibDecoder
- Timestamp:
- 16 Dec 2014, 19:17:49 (10 years ago)
- Location:
- branches/SHM-upgrade/source/Lib/TLibDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecGop.cpp
r921 r928 45 45 #if SVC_EXTENSION 46 46 #include "TDecTop.h" 47 #if CONFORMANCE_BITSTREAM_MODE 48 #include <algorithm> 49 #endif 47 50 #endif 48 51 … … 50 53 51 54 extern Bool g_md5_mismatch; ///< top level flag to signal when there is a decode problem 55 56 #if CONFORMANCE_BITSTREAM_MODE 57 Bool pocCompareFunction( TComPic &pic1, TComPic &pic2 ) 58 { 59 return (pic1.getPOC() < pic2.getPOC()); 60 } 61 #endif 52 62 53 63 //! \ingroup TLibDecoder … … 241 251 calcAndPrintHashStatus(*(pcPic->getPicYuvRec()), hash); 242 252 } 253 #if CONFORMANCE_BITSTREAM_MODE 254 if( this->getLayerDec(pcPic->getLayerId())->getConfModeFlag() ) 255 { 256 // Add this reconstructed picture to the parallel buffer. 257 std::vector<TComPic> *thisLayerBuffer = (this->getLayerDec(pcPic->getLayerId()))->getConfListPic(); 258 thisLayerBuffer->push_back(*pcPic); 259 std::sort( thisLayerBuffer->begin(), thisLayerBuffer->end(), pocCompareFunction ); 260 } 261 #endif 243 262 #if Q0074_COLOUR_REMAPPING_SEI 244 263 if (m_colourRemapSEIEnabled) -
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecTop.cpp
r916 r928 129 129 m_pocDecrementedInDPBFlag = false; 130 130 #endif 131 #if CONFORMANCE_BITSTREAM_MODE 132 m_confModeFlag = false; 133 #endif 131 134 } 132 135 … … 2960 2963 { 2961 2964 // Check if the target decoded layer is the highest layer in the list 2965 #if !CONFORMANCE_BITSTREAM_MODE 2962 2966 assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() ); 2967 #endif 2963 2968 Int layerSetIdx = vps->getOutputLayerSetIdx( params->getTargetOutputLayerSetIdx() ); // Index to the layer set 2969 #if !CONFORMANCE_BITSTREAM_MODE 2964 2970 assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1); 2971 #endif 2965 2972 2966 2973 Bool layerSetMatchFlag = true; -
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecTop.h
r916 r928 170 170 // When new VPS is activated, this should be re-initialized to -1 171 171 #endif 172 #if CONFORMANCE_BITSTREAM_MODE 173 Bool m_confModeFlag; 174 std::vector<TComPic> m_confListPic; // Dynamic buffer for storing pictures for conformance purposes 175 #endif 172 176 public: 173 177 #if POC_RESET_RESTRICTIONS … … 304 308 Void assignSubDpbs(TComVPS *vps); 305 309 #endif 310 #if CONFORMANCE_BITSTREAM_MODE 311 std::vector<TComPic>* getConfListPic() {return &m_confListPic; } 312 // std::string const getDecodedYuvLayerFileName(Int layerId) { return m_decodedYuvLayerFileName[layerId]; } 313 Bool const getConfModeFlag() { return m_confModeFlag; } 314 Void setConfModeFlag(Bool x) { m_confModeFlag = x; } 315 #endif 306 316 #endif //SVC_EXTENSION 307 317
Note: See TracChangeset for help on using the changeset viewer.