Changeset 887 in SHVCSoftware
- Timestamp:
- 17 Sep 2014, 01:08:52 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r886 r887 44 44 #define MAX_LAYERS 8 ///< max number of layers the codec is supposed to handle 45 45 46 #define CROSS_LAYER_BLA_FLAG_FIX 1 ///< Fix for earlier implementation mistake that omit the signalling of cross_layer_bla_flag 46 47 #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 47 48 #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 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r886 r887 2807 2807 } 2808 2808 #else 2809 #if CROSS_LAYER_BLA_FLAG_FIX 2810 Int iBits = 0; 2811 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits) 2812 #else 2809 2813 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits()>0) 2814 #endif 2810 2815 { 2811 2816 READ_FLAG(uiCode, "discardable_flag"); // ignored … … 2821 2826 } 2822 2827 #endif 2823 2824 } 2828 #if CROSS_LAYER_BLA_FLAG_FIX 2829 iBits++; 2830 #endif 2831 } 2832 #if CROSS_LAYER_BLA_FLAG_FIX 2833 if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits) 2834 { 2835 READ_FLAG(uiCode, "cross_layer_bla_flag"); rpcSlice->setCrossLayerBLAFlag( uiCode ? true : false ); 2836 iBits++; 2837 } 2838 for ( ; iBits < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); iBits++) 2839 #else 2825 2840 for (Int i = 1; i < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++) 2841 #endif 2826 2842 { 2827 2843 READ_FLAG(uiCode, "slice_reserved_undetermined_flag[]"); // ignored -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r886 r887 1947 1947 } 1948 1948 #else 1949 #if CROSS_LAYER_BLA_FLAG_FIX 1950 Int iBits = 0; 1951 if(pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits) 1952 #else 1949 1953 if (pcSlice->getPPS()->getNumExtraSliceHeaderBits()>0) 1954 #endif 1950 1955 { 1951 1956 assert(!!"discardable_flag"); … … 1961 1966 #endif 1962 1967 WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag"); 1963 } 1968 #if CROSS_LAYER_BLA_FLAG_FIX 1969 iBits++; 1970 #endif 1971 } 1972 #if CROSS_LAYER_BLA_FLAG_FIX 1973 if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits ) 1974 { 1975 assert(!!"cross_layer_bla_flag"); 1976 WRITE_FLAG(pcSlice->getCrossLayerBLAFlag(), "cross_layer_bla_flag"); 1977 iBits++; 1978 } 1979 for (; iBits < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); iBits++) 1980 #else 1964 1981 for (Int i = 1; i < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++) 1982 #endif 1965 1983 { 1966 1984 assert(!!"slice_reserved_undetermined_flag[]");
Note: See TracChangeset for help on using the changeset viewer.