Changeset 886 in SHVCSoftware
- Timestamp:
- 17 Sep 2014, 00:43:51 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r884 r886 44 44 #define MAX_LAYERS 8 ///< max number of layers the codec is supposed to handle 45 45 46 #define NON_REF_NAL_TYPE_DISCARDABLE 1 ///< JCTVC-P0041 -- If discardable picture is a non-IRAP, it must be a non-referenced sub-layer picture 46 47 #define VPS_AVC_BL_FLAG_REMOVAL 1 ///< remove avc_base_layer_flag and direct the function its offer to vps_base_layer_internal_flag and vps_base_layer_available_flag 47 48 #define VPS_RESERVED_FLAGS 1 ///< vps_base_layer_internal_flag and vps_base_layer_available_flag -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r885 r886 2810 2810 { 2811 2811 READ_FLAG(uiCode, "discardable_flag"); // ignored 2812 #if NON_REF_NAL_TYPE_DISCARDABLE 2813 rpcSlice->setDiscardableFlag( uiCode ? true : false ); 2814 if (uiCode) 2815 { 2816 assert(rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_TRAIL_R && 2817 rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_TSA_R && 2818 rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_STSA_R && 2819 rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RADL_R && 2820 rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RASL_R); 2821 } 2822 #endif 2823 2812 2824 } 2813 2825 for (Int i = 1; i < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r882 r886 1950 1950 { 1951 1951 assert(!!"discardable_flag"); 1952 #if NON_REF_NAL_TYPE_DISCARDABLE 1953 if (pcSlice->getDiscardableFlag()) 1954 { 1955 assert(pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_TRAIL_R && 1956 pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_TSA_R && 1957 pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_STSA_R && 1958 pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RADL_R && 1959 pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RASL_R); 1960 } 1961 #endif 1952 1962 WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag"); 1953 1963 }
Note: See TracChangeset for help on using the changeset viewer.