Changeset 569 in SHVCSoftware for branches/SHM-5.0-dev/source


Ignore:
Timestamp:
28 Jan 2014, 00:05:18 (11 years ago)
Author:
qualcomm
Message:

JCTVC-P0130: Absence of discardable pictures in RPS (Macro: DISCARDABLE_PIC_RPS)

Added conditions/asserts to ensure that pictures that belong to the temporal RPS or the inter-layer RPS have discardable_flag equal to 0.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.cpp

    r565 r569  
    475475      {
    476476        numInterLayerRPSPics++;
     477#if DISCARDABLE_PIC_RPS
     478        assert( ilpPic[i]->getSlice(0)->getDiscardableFlag() == 0 );    // Inter-layer RPS shall not contain picture with discardable_flag = 1.
     479#endif
    477480      }
    478481    }
     
    14261429
    14271430    }
     1431#if DISCARDABLE_PIC_RPS
     1432    if( isReference ) // Current picture is in the temporal RPS
     1433    {
     1434      assert( rpcPic->getSlice(0)->getDiscardableFlag() == 0 ); // Temporal RPS shall not contain picture with discardable_flag equal to 1
     1435    }
     1436#endif
    14281437    // mark the picture as "unused for reference" if it is not in
    14291438    // the Reference Picture Set
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h

    r568 r569  
    5353#define P0307_REMOVE_VPS_VUI_OFFSET      1      ///< JCTVC-P0307, remove implementation related to VPS VUI offset signalling
    5454#define P0307_VPS_NON_VUI_EXTENSION      1      ///< JCTVC-P0307, implementation related to NON VUI VPS Extension signalling
     55
     56#define DISCARDABLE_PIC_RPS              1      ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1
    5557
    5658#define O0109_O0199_FLAGS_TO_VUI         1      ///< JCTVC-O0109, O0199: move single_layer_for_non_irap_flag and higher_layer_flag to vps_vui
  • branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r568 r569  
    18091809    if(rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits)
    18101810    {
     1811#if DISCARDABLE_PIC_RPS
     1812      READ_FLAG(uiCode, "discardable_flag"); rpcSlice->setDiscardableFlag( uiCode ? true : false );
     1813#else
    18111814      READ_FLAG(uiCode, "discardable_flag"); // ignored
     1815#endif
    18121816      iBits++;
    18131817    }
Note: See TracChangeset for help on using the changeset viewer.