Changeset 579 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib
- Timestamp:
- 29 Jan 2014, 02:55:53 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r577 r579 2186 2186 { 2187 2187 // Derive number of sub-DPBs 2188 #if CHANGE_NUMSUBDPB_IDX 2189 // For layer set 0 2190 setNumSubDpbs(0, 1); 2191 // For other layer sets 2192 for( Int i = 1; i < getNumLayerSets(); i++) 2193 { 2194 setNumSubDpbs( i, getNumLayersInIdList( i ) ); 2195 } 2196 #else 2188 2197 // For output layer set 0 2189 2198 setNumSubDpbs(0, 1); … … 2193 2202 setNumSubDpbs( i, getNumLayersInIdList( getOutputLayerSetIdx(i)) ); 2194 2203 } 2204 #endif 2195 2205 } 2196 2206 #endif -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h
r577 r579 652 652 Int m_maxVpsNumReorderPics [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; 653 653 Int m_maxVpsLatencyIncreasePlus1 [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; 654 #if CHANGE_NUMSUBDPB_IDX 655 Int m_numSubDpbs [MAX_VPS_LAYER_SETS_PLUS1]; 656 #else 654 657 Int m_numSubDpbs [MAX_VPS_OP_LAYER_SETS_PLUS1]; 658 #endif 655 659 #endif 656 660 -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h
r577 r579 56 56 #define DISCARDABLE_PIC_RPS 1 ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1 57 57 #define VPS_EXTN_UEV_CODING 1 ///< JCTVC-P0306: Code some syntax elements as ue(v), and remove some syntax elements that duplicate behaviour 58 #define CHANGE_NUMSUBDPB_IDX 1 ///< Change index of NumSubDpb from output layer set to layer set, to be more aligned with the Spec 58 59 #define O0109_O0199_FLAGS_TO_VUI 1 ///< JCTVC-O0109, O0199: move single_layer_for_non_irap_flag and higher_layer_flag to vps_vui 59 60 #define O0109_VIEW_ID_LEN 1 ///< JCTVC-O0109: view_id_len_minus1 to view_id_len, and add constraint (1<<view_id_len) is greater than or equal to NumViews -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r578 r579 1590 1590 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1591 1591 { 1592 #if CHANGE_NUMSUBDPB_IDX 1593 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 1594 #endif 1592 1595 READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]"); vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false ); 1593 1596 for(Int j = 0; j < vps->getMaxTLayers(); j++) … … 1610 1613 if( vps->getSubLayerDpbInfoPresentFlag(i, j) ) // If sub-layer DPB information is present 1611 1614 { 1615 #if CHANGE_NUMSUBDPB_IDX 1616 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 1617 #else 1612 1618 for(Int k = 0; k < vps->getNumSubDpbs(i); k++) 1619 #endif 1613 1620 { 1614 1621 READ_UVLC( uiCode, "max_vps_dec_pic_buffering_minus1[i][k][j]" ); vps->setMaxVpsDecPicBufferingMinus1( i, k, j, uiCode ); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r578 r579 1218 1218 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1219 1219 { 1220 #if CHANGE_NUMSUBDPB_IDX 1221 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 1222 #endif 1220 1223 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 1221 1224 for(Int j = 0; j < vps->getMaxTLayers(); j++) … … 1227 1230 if( vps->getSubLayerDpbInfoPresentFlag(i, j) ) 1228 1231 { 1232 #if CHANGE_NUMSUBDPB_IDX 1233 for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++) 1234 #else 1229 1235 for(Int k = 0; k < vps->getNumSubDpbs(i); k++) 1236 #endif 1230 1237 { 1231 1238 WRITE_UVLC( vps->getMaxVpsDecPicBufferingMinus1( i, k, j), "max_vps_dec_pic_buffering_minus1[i][k][j]" );
Note: See TracChangeset for help on using the changeset viewer.