Changeset 924 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 17 Nov 2014, 17:09:25 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp
r890 r924 46 46 #include "TDecTop.h" 47 47 #endif 48 48 #include <algorithm> 49 49 #include <time.h> 50 50 51 51 extern Bool g_md5_mismatch; ///< top level flag to signal when there is a decode problem 52 52 53 #if CONFORMANCE_BITSTREAM_MODE 54 Bool pocCompareFunction( TComPic &pic1, TComPic &pic2 ) 55 { 56 return (pic1.getPOC() < pic2.getPOC()); 57 } 58 #endif 53 59 //! \ingroup TLibDecoder 54 60 //! \{ … … 256 262 calcAndPrintHashStatus(*rpcPic->getPicYuvRec(), hash); 257 263 } 264 #if CONFORMANCE_BITSTREAM_MODE 265 if( this->getLayerDec(rpcPic->getLayerId())->getConfModeFlag() ) 266 { 267 // Add this reconstructed picture to the parallel buffer. 268 std::vector<TComPic> *thisLayerBuffer = (this->getLayerDec(rpcPic->getLayerId()))->getConfListPic(); 269 thisLayerBuffer->push_back(*rpcPic); 270 std::sort( thisLayerBuffer->begin(), thisLayerBuffer->end(), pocCompareFunction ); 271 } 272 #endif 258 273 #if Q0074_COLOUR_REMAPPING_SEI 259 274 if (m_colourRemapSEIEnabled) -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r903 r924 123 123 m_pocResettingFlag = false; 124 124 m_pocDecrementedInDPBFlag = false; 125 #endif 126 #if CONFORMANCE_BITSTREAM_MODE 127 m_confModeFlag = false; 125 128 #endif 126 129 } … … 2974 2977 { 2975 2978 // Check if the target decoded layer is the highest layer in the list 2979 #if 0 2976 2980 assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() ); 2981 #endif 2977 2982 Int layerSetIdx = vps->getOutputLayerSetIdx( params->getTargetOutputLayerSetIdx() ); // Index to the layer set 2983 #if 0 2978 2984 assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1); 2985 #endif 2979 2986 2980 2987 Bool layerSetMatchFlag = true; -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r903 r924 167 167 // When new VPS is activated, this should be re-initialized to -1 168 168 #endif 169 #if CONFORMANCE_BITSTREAM_MODE 170 Bool m_confModeFlag; 171 std::vector<TComPic> m_confListPic; // Dynamic buffer for storing pictures for conformance purposes 172 #endif 169 173 public: 170 174 #if POC_RESET_RESTRICTIONS … … 295 299 Void assignSubDpbs(TComVPS *vps); 296 300 #endif 301 #if CONFORMANCE_BITSTREAM_MODE 302 std::vector<TComPic>* getConfListPic() {return &m_confListPic; } 303 // std::string const getDecodedYuvLayerFileName(Int layerId) { return m_decodedYuvLayerFileName[layerId]; } 304 #endif 297 305 #endif //SVC_EXTENSION 298 306 … … 334 342 Void resetPocRestrictionCheckParameters(); 335 343 #endif 344 public: 345 #if CONFORMANCE_BITSTREAM_MODE 346 Bool const getConfModeFlag() { return m_confModeFlag; } 347 Void setConfModeFlag(Bool x) { m_confModeFlag = x; } 348 #endif 336 349 };// END CLASS DEFINITION TDecTop 337 350
Note: See TracChangeset for help on using the changeset viewer.