Changeset 546 in SHVCSoftware
- Timestamp:
- 15 Jan 2014, 01:06:24 (11 years ago)
- Location:
- branches/SHM-4.1-dev/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r521 r546 144 144 m_tgtLayerId = nLayerNum - 1; 145 145 assert( m_tgtLayerId >= 0 ); 146 #if O0137_MAX_LAYERID 147 assert( m_tgtLayerId < MAX_NUM_LAYER_IDS ); 148 #endif 146 149 #if OUTPUT_LAYER_SET_INDEX 147 150 this->getCommonDecoderParams()->setOutputLayerSetIdx( olsIdx ); -
branches/SHM-4.1-dev/source/Lib/TLibCommon/TypeDef.h
r545 r546 49 49 #define MAX_LAYERS 2 ///< max number of layers the codec is supposed to handle 50 50 51 #define O0137_MAX_LAYERID 1 ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1 52 51 53 #define O0109_O0199_FLAGS_TO_VUI 1 ///< JCTVC-O0109, O0199: move single_layer_for_non_irap_flag and higher_layer_flag to vps_vui 52 54 #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 … … 253 255 254 256 #define MAX_CPB_CNT 32 ///< Upper bound of (cpb_cnt_minus1 + 1) 257 #if O0137_MAX_LAYERID 258 #define MAX_NUM_LAYER_IDS 63 259 #else 255 260 #define MAX_NUM_LAYER_IDS 64 256 261 #endif 257 262 #define COEF_REMAIN_BIN_REDUCTION 3 ///< indicates the level at which the VLC 258 263 ///< transitions from Golomb-Rice to TU+EG(k) -
branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r545 r546 866 866 READ_CODE( 2, uiCode, "vps_reserved_three_2bits" ); assert(uiCode == 3); 867 867 #if VPS_RENAME 868 READ_CODE( 6, uiCode, "vps_max_layers_minus1" ); pcVPS->setMaxLayers( uiCode + 1); 868 #if O0137_MAX_LAYERID 869 READ_CODE( 6, uiCode, "vps_max_layers_minus1" ); pcVPS->setMaxLayers( min( 62u, uiCode) + 1 ); 870 #else 871 READ_CODE( 6, uiCode, "vps_max_layers_minus1" ); pcVPS->setMaxLayers( uiCode + 1 ); 872 #endif 869 873 #else 870 874 READ_CODE( 6, uiCode, "vps_reserved_zero_6bits" ); assert(uiCode == 0); -
branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecTop.cpp
r539 r546 1734 1734 m_cEntropyDecoder.setBitstream (nalu.m_Bitstream); 1735 1735 1736 #if O0137_MAX_LAYERID 1737 // ignore any NAL units with nuh_layer_id == 63 1738 if (nalu.m_layerId == 63 ) 1739 { 1740 return false; 1741 } 1742 #endif 1736 1743 switch (nalu.m_nalUnitType) 1737 1744 {
Note: See TracChangeset for help on using the changeset viewer.