- Timestamp:
- 23 Jul 2014, 04:38:40 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r834 r836 2309 2309 TComVPS::TComVPS() 2310 2310 : m_VPSId ( 0) 2311 #if VPS_RESERVED_FLAGS 2312 , m_baseLayerInternalFlag (true) 2313 , m_baseLayerAvailableFlag (true) 2314 #endif 2311 2315 , m_uiMaxTLayers ( 1) 2312 2316 , m_uiMaxLayers ( 1) -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r834 r836 460 460 private: 461 461 Int m_VPSId; 462 #if VPS_RESERVED_FLAGS 463 Bool m_baseLayerInternalFlag; 464 Bool m_baseLayerAvailableFlag; 465 #endif 462 466 UInt m_uiMaxTLayers; 463 467 UInt m_uiMaxLayers; … … 748 752 TComVPS(); 749 753 virtual ~TComVPS(); 754 755 #if VPS_RESERVED_FLAGS 756 Void setBaseLayerInternalFlag(Bool x) { m_baseLayerInternalFlag = x; } 757 Bool getBaseLayerInternalFlag() { return m_baseLayerInternalFlag; } 758 Void setBaseLayerAvailableFlag(Bool x) { m_baseLayerAvailableFlag = x; } 759 Bool getBaseLayerAvailableFlag() { return m_baseLayerAvailableFlag; } 760 #endif 750 761 751 762 Void createHrdParamBuffer() -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r835 r836 44 44 #define MAX_LAYERS 8 ///< max number of layers the codec is supposed to handle 45 45 46 #define VPS_RESERVED_FLAGS 1 ///< vps_base_layer_internal_flag and vps_base_layer_available_flag 46 47 #define VPS_VUI_OFFSET 1 ///< N0085: Signal VPS VUI offset in the VPS extension 47 48 #define O0137_MAX_LAYERID 1 ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r826 r836 924 924 925 925 READ_CODE( 4, uiCode, "vps_video_parameter_set_id" ); pcVPS->setVPSId( uiCode ); 926 #if VPS_RESERVED_FLAGS 927 READ_FLAG( uiCode, "vps_base_layer_internal_flag"); pcVPS->setBaseLayerInternalFlag( uiCode ? true : false ); 928 READ_FLAG( uiCode, "vps_base_layer_available_flag"); pcVPS->setBaseLayerAvailableFlag( uiCode ? true : false ); 929 #else 926 930 READ_CODE( 2, uiCode, "vps_reserved_three_2bits" ); assert(uiCode == 3); 931 #endif 927 932 #if SVC_EXTENSION 928 933 #if O0137_MAX_LAYERID -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r826 r836 706 706 #endif 707 707 WRITE_CODE( pcVPS->getVPSId(), 4, "vps_video_parameter_set_id" ); 708 #if VPS_RESERVED_FLAGS 709 WRITE_FLAG( pcVPS->getBaseLayerInternalFlag(), "vps_base_layer_internal_flag"); 710 WRITE_FLAG( pcVPS->getBaseLayerAvailableFlag(), "vps_base_layer_available_flag"); 711 #else 708 712 WRITE_CODE( 3, 2, "vps_reserved_three_2bits" ); 713 #endif 709 714 #if SVC_EXTENSION 710 715 WRITE_CODE( pcVPS->getMaxLayers() - 1, 6, "vps_max_layers_minus1" );
Note: See TracChangeset for help on using the changeset viewer.