Changeset 1100 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder


Ignore:
Timestamp:
6 Jul 2015, 20:20:51 (10 years ago)
Author:
seregin
Message:

macro cleanup: RESOLUTION_BASED_DPB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1094 r1100  
    16441644#endif
    16451645#endif
    1646 #if RESOLUTION_BASED_DPB
    1647   vps->assignSubDpbIndices();
    1648 #else
    16491646  vps->deriveNumberOfSubDpbs();
    1650 #endif
    16511647  vps->setOutputLayerFlag( 0, 0, 1 );
    16521648
     
    17471743      Int maxNumReorderPics = -1;
    17481744#if CHANGE_NUMSUBDPB_IDX
    1749 #if RESOLUTION_BASED_DPB
    1750       for(Int k = 0; k < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); k++)
    1751 #else
    17521745      for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++)
    1753 #endif
    17541746#else
    17551747      for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
     
    17571749      {
    17581750        Int layerId = vps->getLayerSetLayerIdList(layerSetId, k); // k-th layer in the output layer set
    1759 #if RESOLUTION_BASED_DPB
    1760         vps->setMaxVpsLayerDecPicBuffMinus1( i, k, j, m_acTEncTop[layerId].getMaxDecPicBuffering(j) - 1 );
    1761         // Add sub-DPB sizes of layers belonging to a sub-DPB. If a different sub-DPB size is calculated
    1762         // at the encoder, modify below
    1763         Int oldValue = vps->getMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j );
    1764         oldValue += vps->getMaxVpsLayerDecPicBuffMinus1( i, k, j ) + 1;
    1765         vps->setMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j, oldValue );
    1766 #else
    17671751        vps->setMaxVpsDecPicBufferingMinus1( i, k, j,  m_acTEncTop[vps->getLayerIdxInVps(layerId)].getMaxDecPicBuffering(j) - 1 );
    1768 #endif
    17691752        maxNumReorderPics       = std::max( maxNumReorderPics, m_acTEncTop[vps->getLayerIdxInVps(layerId)].getNumReorderPics(j));
    17701753      }
    1771 #if RESOLUTION_BASED_DPB
    1772       for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
    1773       {
    1774         // Decrement m_maxVpsDecPicBufferingMinus1
    1775         Int oldValue = vps->getMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j );
    1776         vps->setMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j, oldValue - 1 );
    1777       }
    1778 #endif
    17791754      vps->setMaxVpsNumReorderPics(i, j, maxNumReorderPics);
    17801755      vps->determineSubDpbInfoFlags();
Note: See TracChangeset for help on using the changeset viewer.