Changeset 1204 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 21:01:37 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1203 r1204 2313 2313 Bool isRASL() { return (m_eNalUnitType == NAL_UNIT_CODED_SLICE_RASL_N || m_eNalUnitType == NAL_UNIT_CODED_SLICE_RASL_R); } 2314 2314 2315 #if POC_RESET_RESTRICTIONS2316 2315 Bool isIDR() { return (m_eNalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL 2317 2316 || m_eNalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP); } … … 2328 2327 || m_eNalUnitType == NAL_UNIT_RESERVED_VCL_N12 2329 2328 || m_eNalUnitType == NAL_UNIT_RESERVED_VCL_N14 ); } 2330 #endif 2329 2331 2330 Bool getDiscardableFlag () { return m_bDiscardableFlag; } 2332 2331 Void setDiscardableFlag (Bool b) { m_bDiscardableFlag = b; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1203 r1204 46 46 #define MAX_LAYERS 8 ///< max number of layers the codec is supposed to handle 47 47 #define CONFORMANCE_BITSTREAM_MODE 1 ///< In order to generate the metadata related to conformance bitstreams 48 #define POC_RESET_RESTRICTIONS 1 ///< Restrictions on semantics of POC reset-related syntax elements, including one item from R022349 48 #define POC_RESET_VALUE_RESTRICTION 1 ///< R0223: Restriction on the value of full_poc_reset_flag 50 49 #define BSP_INIT_ARRIVAL_SEI 1 ///< JCTVC-R0231: Make signalling of vcl_initial_arrival_delay independent of NalHrdBpPresentFlag -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1203 r1204 1916 1916 { 1917 1917 READ_CODE( 2, uiCode, "poc_reset_idc"); pcSlice->setPocResetIdc(uiCode); 1918 #if POC_RESET_RESTRICTIONS 1918 1919 1919 /* The value of poc_reset_idc shall not be equal to 1 or 2 for a RASL picture, a RADL picture, 1920 1920 a sub-layer non-reference picture, or a picture that has TemporalId greater than 0, … … 1934 1934 assert( ! ( pcSlice->isCRA() || pcSlice->isBLA() ) ); 1935 1935 } 1936 #endif1937 1936 } 1938 1937 else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1203 r1204 46 46 UInt TDecTop::m_uiPrevLayerId = MAX_UINT; 47 47 Bool TDecTop::m_bFirstSliceInSequence = true; 48 #if POC_RESET_RESTRICTIONS49 48 Bool TDecTop::m_checkPocRestrictionsForCurrAu = false; 50 49 Int TDecTop::m_pocResetIdcOrCurrAu = -1; … … 56 55 Bool TDecTop::m_picNonIdrWithRadlPresentFlag = false; 57 56 Bool TDecTop::m_picNonIdrNoLpPresentFlag = false; 58 #endif59 57 #if POC_RESET_VALUE_RESTRICTION 60 58 Int TDecTop::m_crossLayerPocResetPeriodId = -1; … … 121 119 #endif 122 120 123 #if POC_RESET_RESTRICTIONS124 121 resetPocRestrictionCheckParameters(); 125 #endif126 122 m_pocResettingFlag = false; 127 123 m_pocDecrementedInDPBFlag = false; … … 712 708 713 709 m_apcSlicePilot->setNalUnitType(nalu.m_nalUnitType); 714 #if POC_RESET_RESTRICTIONS710 #if SVC_EXTENSION 715 711 m_apcSlicePilot->setTLayer( nalu.m_temporalId ); 716 712 #endif … … 889 885 if(( m_layerId < m_uiPrevLayerId) ||( ( m_layerId == m_uiPrevLayerId) && bNewPOC)) // Decoding a lower layer than or same layer as previous - mark all earlier pictures as not in current AU 890 886 { 891 #if POC_RESET_RESTRICTIONS892 887 // New access unit; reset all variables related to POC reset restrictions 893 888 resetPocRestrictionCheckParameters(); 894 #endif 889 895 890 markAllPicsAsNoCurrAu(m_apcSlicePilot->getVPS()); 896 891 … … 1424 1419 #if POC_RESET_IDC_DECODER 1425 1420 m_pcPic->setCurrAuFlag( true ); 1426 #if POC_RESET_RESTRICTIONS 1421 1427 1422 if( m_pcPic->getLayerId() > 0 && m_apcSlicePilot->isIDR() && !m_nonBaseIdrPresentFlag ) 1428 1423 { … … 1507 1502 } 1508 1503 } 1509 #endif1510 1504 #endif 1511 1505 … … 2506 2500 } 2507 2501 #endif 2508 #if POC_RESET_RESTRICTIONS 2502 2509 2503 Void TDecTop::resetPocRestrictionCheckParameters() 2510 2504 { … … 2519 2513 TDecTop::m_picNonIdrNoLpPresentFlag = false; 2520 2514 } 2521 #endif2522 2515 2523 2516 Void TDecTop::xCheckLayerReset() -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1203 r1204 164 164 public: 165 165 #if SVC_EXTENSION 166 #if POC_RESET_RESTRICTIONS167 166 static Bool m_checkPocRestrictionsForCurrAu; 168 167 static Int m_pocResetIdcOrCurrAu; … … 174 173 static Bool m_picNonIdrWithRadlPresentFlag; 175 174 static Bool m_picNonIdrNoLpPresentFlag; 176 #endif177 175 #if POC_RESET_VALUE_RESTRICTION 178 176 static Int m_crossLayerPocResetPeriodId; … … 301 299 Void initAsymLut(TComSlice *pcSlice); 302 300 #endif 303 #if POC_RESET_RESTRICTIONS304 301 Void resetPocRestrictionCheckParameters(); 305 #endif306 302 Void xCheckLayerReset(); 307 303 Void xSetNoRaslOutputFlag();
Note: See TracChangeset for help on using the changeset viewer.