Changeset 571 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibDecoder


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@…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.