Changeset 1183 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 03:11:41 (9 years ago)
Author:
seregin
Message:

macro cleanup: NON_REF_NAL_TYPE_DISCARDABLE

Location:
branches/SHM-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1182 r1183  
    4747#define CONFORMANCE_BITSTREAM_MODE       1      ///< In order to generate the metadata related to conformance bitstreams
    4848#define INFERENCE_POC_MSB_VAL_PRESENT    1      ///< JCTVC-Q0146 -- poc_msb_val_present_flag shall be equal to 0 when slice_header_extension_length is (inferred to be ) equal to 0
    49 #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
    5049#define POC_RESET_RESTRICTIONS           1      ///< Restrictions on semantics of POC reset-related syntax elements, including one item from R0223
    5150#define POC_RESET_VALUE_RESTRICTION      1      ///< R0223: Restriction on the value of full_poc_reset_flag
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1182 r1183  
    12251225    if(pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits)
    12261226    {
    1227       READ_FLAG(uiCode, "discardable_flag"); // ignored
    1228 #if NON_REF_NAL_TYPE_DISCARDABLE
     1227      READ_FLAG(uiCode, "discardable_flag");
    12291228      pcSlice->setDiscardableFlag( uiCode ? true : false );
    1230       if (uiCode)
     1229
     1230      if( uiCode )
    12311231      {
    12321232        assert(pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_TRAIL_R &&
     
    12361236          pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RASL_R);
    12371237      }
    1238 #endif
     1238
    12391239      iBits++;
    12401240    }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1182 r1183  
    938938    {
    939939      assert(!!"discardable_flag");
    940 #if NON_REF_NAL_TYPE_DISCARDABLE
     940
    941941      if (pcSlice->getDiscardableFlag())
    942942      {
     
    947947          pcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RASL_R);
    948948      }
    949 #endif
     949
    950950      WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag");
    951951      iBits++;
Note: See TracChangeset for help on using the changeset viewer.