Changeset 886 in SHVCSoftware


Ignore:
Timestamp:
17 Sep 2014, 00:43:51 (10 years ago)
Author:
qualcomm
Message:

JCTVC-P0041 -- It was remarked that we should require each non-IRAP picture that has discardable_flag equal to 1 to have NUT value indicating that it is a sub-layer non-reference picture.

MACRO: NON_REF_NAL_TYPE_DISCARDABLE

submitted by Hendry (fhendry@…)

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

Legend:

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

    r884 r886  
    4444#define MAX_LAYERS                       8      ///< max number of layers the codec is supposed to handle
    4545
     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
    4647#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
    4748#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  
    28102810    {
    28112811      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
    28122824    }
    28132825    for (Int i = 1; i < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r882 r886  
    19501950    {
    19511951      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
    19521962      WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag");
    19531963    }
Note: See TracChangeset for help on using the changeset viewer.