Changeset 571 in SHVCSoftware


Ignore:
Timestamp:
28 Jan 2014, 05:40:30 (11 years ago)
Author:
etri
Message:

JCTVC-P0079: Modification of derivation of variable NumActiveRefLayerPics (Macro: P0079_DERIVE_NUMACTIVE_REF_PICS) Provided by H.Lee (hanilee@…)

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

Legend:

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

    r570 r571  
    162162#define VPS_TSLAYERS                     1      ///< JCTVC-O0120 signal max temporal sub-layers for each layer
    163163#define TSLAYERS_IL_RPS                  1      ///< JCTVC-O0120 IL RPS based on max temporal sub-layers
     164#define P0079_DERIVE_NUMACTIVE_REF_PICS  1      ///< JCTVC-P0079 Modification of derivation of variable NumActiveRefLayerPics
    164165#if REF_IDX_MFM
    165166#define N0139_POSITION_ROUNDING_OFFSET   1      ///< JCTVC-N0139: offset for collocated block in motion mapping
  • branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r570 r571  
    21312131          else
    21322132          {
     2133#if P0079_DERIVE_NUMACTIVE_REF_PICS
     2134            Int   numRefLayerPics = 0;
     2135            Int   i = 0;
     2136            Int   refLayerPicIdc  [MAX_VPS_LAYER_ID_PLUS1];
     2137            for(i = 0, numRefLayerPics = 0;  i < rpcSlice->getNumILRRefIdx(); i++ )
     2138            {
     2139              if(rpcSlice->getVPS()->getMaxTidIlRefPicsPlus1(rpcSlice->getVPS()->getLayerIdInVps(i),rpcSlice->getLayerId()) >  rpcSlice->getTLayer() &&
     2140                (rpcSlice->getVPS()->getMaxTSLayersMinus1(rpcSlice->getVPS()->getLayerIdInVps(i)) >=  rpcSlice->getTLayer()) )
     2141              {         
     2142                refLayerPicIdc[ numRefLayerPics++ ] = i;
     2143              }
     2144            }
     2145            if (numRefLayerPics)
     2146              rpcSlice->setActiveNumILRRefIdx(1);
     2147#else
    21332148            rpcSlice->setActiveNumILRRefIdx(1);
     2149#endif
    21342150          }
    21352151#if ILP_NUM_REF_CHK
Note: See TracChangeset for help on using the changeset viewer.