Changeset 1209 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 8 Jul 2015, 22:33:03 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1208 r1209 134 134 , m_pocMsbValPresentFlag ( false ) 135 135 , m_pocMsbValNeeded ( false ) 136 #if POC_RESET_IDC_DECODER || POC_RESET_IDC_ENCODER137 136 , m_picOrderCntLsb (0) 138 #endif139 137 #endif //SVC_EXTENSION 140 138 { … … 197 195 m_activeNumILRRefIdx = 0; 198 196 m_interLayerPredEnabledFlag = 0; 197 m_picOrderCntLsb = 0; 199 198 #endif 200 199 … … 226 225 m_pocMsbValRequiredFlag = false; 227 226 m_pocMsbValPresentFlag = false; 228 #if POC_RESET_IDC_DECODER || POC_RESET_IDC_ENCODER229 m_picOrderCntLsb = 0;230 #endif231 227 m_pocMsbValNeeded = false; 232 228 m_pocResetDeltaPoc = 0; … … 287 283 while ( iterPic != rcListPic.end() ) 288 284 { 289 #if POC_RESET_IDC_ENCODER290 if( (pcPic->getPOC() == poc) && (pcPic->getSlice(0)->isReferenced()) )285 #if SVC_EXTENSION 286 if( pcPic->getPOC() == poc && pcPic->getSlice(0)->isReferenced() ) 291 287 #else 292 288 if(pcPic->getPOC() == poc) … … 886 882 rpcPic->setCurrSliceIdx(0); 887 883 #if NO_CLRAS_OUTPUT_FLAG 888 #if POC_RESET_IDC_ENCODER 889 if (noClrasOutputFlag) 884 if( noClrasOutputFlag ) 890 885 { 891 886 rpcPic->getSlice(0)->setReferenced(false); // all layers // TODO. This does not mark all layers … … 893 888 else 894 889 { 895 if (rpcPic->getLayerId() == m_layerId) rpcPic->getSlice(0)->setReferenced(false); // only current layer 896 } 897 #else 898 if (noClrasOutputFlag) 899 { 900 if (rpcPic->getPOC() != pocCurr) rpcPic->getSlice(0)->setReferenced(false); // all layers 901 } 902 else 903 { 904 if (rpcPic->getPOC() != pocCurr && rpcPic->getLayerId() == m_layerId) rpcPic->getSlice(0)->setReferenced(false); // only current layer 905 } 906 #endif 890 if( rpcPic->getLayerId() == m_layerId ) 891 { 892 rpcPic->getSlice(0)->setReferenced(false); // only current layer 893 } 894 } 907 895 #else 908 896 if (rpcPic->getPOC() != pocCurr) rpcPic->getSlice(0)->setReferenced(false); … … 910 898 iterPic++; 911 899 } 912 #if POC_RESET_IDC_ENCODER 913 this->getPic()->getSlice(0)->setReferenced(true); // Mark the current picture back as refererced. 914 #endif 900 901 #if SVC_EXTENSION 902 m_pcPic->getSlice(0)->setReferenced(true); // Mark the current picture back as refererced. 903 #endif 904 915 905 if ( getNalUnitType() == NAL_UNIT_CODED_SLICE_BLA_W_LP 916 906 || getNalUnitType() == NAL_UNIT_CODED_SLICE_BLA_W_RADL … … 1141 1131 } 1142 1132 1143 #if POC_RESET_IDC_ENCODER1133 #if SVC_POC 1144 1134 Void TComSlice::checkLeadingPictureRestrictions(TComList<TComPic*>& rcListPic, Bool usePocBeforeReset) 1145 1135 #else … … 1230 1220 nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL) 1231 1221 { 1232 #if POC_RESET_IDC_ENCODER1222 #if SVC_POC 1233 1223 if( usePocBeforeReset ) 1234 1224 { … … 1259 1249 if(this->getAssociatedIRAPPOC() != rpcPic->getPOC()) 1260 1250 { 1261 #if POC_RESET_IDC_ENCODER1251 #if SVC_POC 1262 1252 if( usePocBeforeReset ) 1263 1253 { … … 1287 1277 // rpcPic is a picture that preceded the leading in decoding order since it exist in the DPB 1288 1278 // rpcPic would violate the constraint if it was a trailing picture 1289 #if POC_RESET_IDC_ENCODER1279 #if SVC_POC 1290 1280 if( usePocBeforeReset ) 1291 1281 { … … 3847 3837 } 3848 3838 #endif 3849 #if POC_RESET_IDC_ENCODER 3839 3850 3840 Void TComSlice::decrementRefPocValues(Int const decrementValue) 3851 3841 { … … 3878 3868 } 3879 3869 } 3880 #endif3881 3870 3882 3871 Void TComSlice::setRefPicListModificationSvc() -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1208 r1209 1895 1895 Int m_iLastIDR; 1896 1896 Int m_iAssociatedIRAP; 1897 #if POC_RESET_IDC_ENCODER1898 Int m_associatedIrapPocBeforeReset;1899 #endif1900 1897 NalUnitType m_iAssociatedIRAPType; 1901 1898 static Int m_prevTid0POC; … … 1985 1982 1986 1983 #if SVC_EXTENSION 1984 Int m_associatedIrapPocBeforeReset; 1987 1985 Bool m_firstSliceInPic; 1988 1986 Bool m_availableForTMVPRefFlag; … … 2012 2010 Bool m_pocMsbValNeeded; 2013 2011 Int m_pocResetDeltaPoc; 2014 #if POC_RESET_IDC_ENCODER2015 2012 Int m_pocValueBeforeReset; 2016 #endif2017 #if POC_RESET_IDC_DECODER || POC_RESET_IDC_ENCODER2018 2013 Int m_picOrderCntLsb; 2019 #endif2020 2014 #if Q0048_CGS_3D_ASYMLUT 2021 2015 Int m_nCGSOverWritePPS; // for optimization, not output to bitstream … … 2137 2131 Void setPrevTid0POC( Int x ) { m_prevTid0POC = x; } 2138 2132 #endif 2139 #if POC_RESET_IDC_ENCODER2140 2133 Void setAssociatedIrapPocBeforeReset(Int x) { m_associatedIrapPocBeforeReset = x; } 2141 2134 Int getAssociatedIrapPocBeforeReset( ) { return m_associatedIrapPocBeforeReset; } 2142 #endif2143 2135 2144 2136 Void setRefPicList ( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr = false, TComPic** ilpPic = NULL ); … … 2185 2177 Void setTLayerInfo( UInt uiTLayer ); 2186 2178 Void decodingMarking( TComList<TComPic*>& rcListPic, Int iGOPSIze, Int& iMaxRefPicNum ); 2187 #if POC_RESET_IDC_ENCODER2179 #if SVC_POC 2188 2180 Void checkLeadingPictureRestrictions(TComList<TComPic*>& rcListPic, Bool usePocBeforeReset = false); 2189 2181 #else … … 2372 2364 Bool getRadlPicFlag (); 2373 2365 #endif 2374 #if POC_RESET_IDC_DECODER || POC_RESET_IDC_ENCODER2375 2366 Int getPicOrderCntLsb() { return m_picOrderCntLsb; } 2376 2367 Void setPicOrderCntLsb(Int x) { m_picOrderCntLsb = x; } 2377 #endif 2378 2379 #if POC_RESET_IDC_ENCODER 2368 2380 2369 Int getPocValueBeforeReset () { return m_pocValueBeforeReset; } 2381 2370 Void setPocValueBeforeReset (Int x) { m_pocValueBeforeReset = x ; } 2382 2371 Void decrementRefPocValues(Int const decrementValue); 2383 2372 Int getCurrMsb( Int currLsb, Int prevLsb, Int prevMsb, Int maxLsbVal ); 2384 #endif 2373 2385 2374 Int getReferenceLayerIdc( UInt refLayerId ); 2386 2375 -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1208 r1209 69 69 #define POC_RESET_IDC 1 ///< JCTVC-P0041: Include poc_reset_idc and related derivation 70 70 #if POC_RESET_IDC 71 #define POC_RESET_IDC_ENCODER 1 ///< JCTVC-P0041: Include support of enabling POC reset at the encoder72 71 #define POC_RESET_IDC_DECODER 1 ///< JCTVC-P0041: Include support of enabling POC reset at the decoder 73 72 #endif
Note: See TracChangeset for help on using the changeset viewer.