Changeset 409 in SHVCSoftware
- Timestamp:
- 4 Oct 2013, 09:33:05 (11 years ago)
- Location:
- branches/SHM-3.1-dev/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp
r403 r409 1059 1059 vps->setMaxOneActiveRefLayerFlag(maxDirectRefLayers > 1 ? false : true); 1060 1060 #endif 1061 #if N0147_IRAP_ALIGN_FLAG 1062 vps->setCrossLayerIrapAlignFlag(maxDirectRefLayers == 0 ? false : true); 1063 #endif 1061 1064 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 1062 1065 vps->setSingleLayerForNonIrapFlag(m_adaptiveResolutionChange > 0 ? true : false); -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.cpp
r407 r409 1806 1806 m_maxOneActiveRefLayerFlag = true; 1807 1807 #endif 1808 #if N0147_IRAP_ALIGN_FLAG 1809 m_crossLayerIrapAlignFlag = true; 1810 #endif 1808 1811 #if JCTVC_M0203_INTERLAYER_PRED_IDC 1809 1812 #if N0120_MAX_TID_REF_PRESENT_FLAG -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.h
r407 r409 523 523 Bool m_maxOneActiveRefLayerFlag; 524 524 #endif 525 #if N0147_IRAP_ALIGN_FLAG 526 Bool m_crossLayerIrapAlignFlag; 527 #endif 525 528 #if JCTVC_M0203_INTERLAYER_PRED_IDC 526 529 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1]; … … 719 722 Bool getMaxOneActiveRefLayerFlag() { return m_maxOneActiveRefLayerFlag; } 720 723 Void setMaxOneActiveRefLayerFlag(Bool x) { m_maxOneActiveRefLayerFlag = x; } 724 #endif 725 #if N0147_IRAP_ALIGN_FLAG 726 Bool getCrossLayerIrapAlignFlag() { return m_crossLayerIrapAlignFlag; } 727 Void setCrossLayerIrapAlignFlag(Bool x) { m_crossLayerIrapAlignFlag = x; } 721 728 #endif 722 729 #if JCTVC_M0203_INTERLAYER_PRED_IDC -
branches/SHM-3.1-dev/source/Lib/TLibCommon/TypeDef.h
r408 r409 143 143 #endif 144 144 145 #define N0147_IRAP_ALIGN_FLAG 1 145 146 #define FAST_INTRA_SHVC 1 ///< M0115: reduction number of intra modes in the EL (encoder only) 146 147 #if FAST_INTRA_SHVC -
branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r407 r409 1205 1205 #endif 1206 1206 1207 #if N0147_IRAP_ALIGN_FLAG 1208 READ_FLAG(uiCode, "cross_layer_irap_aligned_flag" ); 1209 vps->setCrossLayerIrapAlignFlag(uiCode); 1210 #endif 1211 1207 1212 #if !VPS_MOVE_DIR_DEPENDENCY_FLAG 1208 1213 #if VPS_EXTN_DIRECT_REF_LAYERS -
branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp
r408 r409 757 757 // actual decoding starts here 758 758 xActivateParameterSets(); 759 #if 0 // N0147_IRAP_ALIGN_FLAG Disabled for now! 760 //When cross_layer_irap_aligned_flag is equal to 0, num_extra_slice_header_bits >=1 761 if( m_layerId > 0 && m_apcSlicePilot->getVPS()->getCrossLayerIrapAlignFlag()) 762 assert( m_apcSlicePilot->getPPS()->getNumExtraSliceHeaderBits() > 0); 763 //When cross_layer_irap_aligned_flag is equal to 1, the value of poc_reset_flag shall be equal to 0 764 // to be added after poc_reset_flag is integrated. 765 #endif 766 759 767 #if REPN_FORMAT_IN_VPS 760 768 // Initialize ILRP if needed, only for the current layer … … 1099 1107 #endif //SVC_EXTENSION 1100 1108 1109 #if N0147_IRAP_ALIGN_FLAG 1110 if( m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag()) 1111 { 1112 if(pcSlice->isIRAP()) 1113 { 1114 for(Int depedentLayerId = 0; depedentLayerId < pcSlice->getVPS()->getNumDirectRefLayers(m_layerId); depedentLayerId++) 1115 assert(pcSlice->getNalUnitType() == pcSlice->getBaseColPic(depedentLayerId)->getSlice(0)->getNalUnitType()); 1116 } 1117 } 1118 #endif 1101 1119 // For generalized B 1102 1120 // note: maybe not existed case (always L0 is copied to L1 if L1 is empty) -
branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r407 r409 923 923 WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag"); 924 924 #endif 925 #if N0147_IRAP_ALIGN_FLAG 926 WRITE_FLAG(vps->getCrossLayerIrapAlignFlag(), "cross_layer_irap_aligned_flag"); 927 #endif 925 928 #if !VPS_MOVE_DIR_DEPENDENCY_FLAG 926 929 #if VPS_EXTN_DIRECT_REF_LAYERS
Note: See TracChangeset for help on using the changeset viewer.