Changeset 1081 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
25 Mar 2015, 06:14:32 (10 years ago)
Author:
interdigital
Message:

fix SHM ticket #78, the samplePredEnabledFalg/motionPredEnabledFlag layerIdx is in the order of number of direct ref pics. The same index concept also applies to InterLayerPredLayerIdc.

File:
1 edited

Legend:

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

    r1068 r1081  
    15651565  {
    15661566    UInt layerId = vps->getLayerIdInNuh(layerCtr);
     1567    Int numDirectRefLayers = 0;
     1568
    15671569    vps->setNumDirectRefLayers(layerId, m_acTEncTop[layerCtr].getNumDirectRefLayers());
    15681570    maxDirectRefLayers = max<UInt>(maxDirectRefLayers, vps->getNumDirectRefLayers(layerId));
     
    15881590      if (vps->getDirectDependencyFlag(layerCtr, refLayerCtr))
    15891591      {
    1590         assert(m_acTEncTop[layerCtr].getSamplePredEnabledFlag(refLayerCtr) || m_acTEncTop[layerCtr].getMotionPredEnabledFlag(refLayerCtr));
    1591         vps->setDirectDependencyType(layerCtr, refLayerCtr, ((m_acTEncTop[layerCtr].getSamplePredEnabledFlag(refLayerCtr) ? 1 : 0) |
    1592           (m_acTEncTop[layerCtr].getMotionPredEnabledFlag(refLayerCtr) ? 2 : 0)) - 1);
     1592        assert(m_acTEncTop[layerCtr].getSamplePredEnabledFlag(numDirectRefLayers) || m_acTEncTop[layerCtr].getMotionPredEnabledFlag(numDirectRefLayers));
     1593        vps->setDirectDependencyType(layerCtr, refLayerCtr, ((m_acTEncTop[layerCtr].getSamplePredEnabledFlag(numDirectRefLayers) ? 1 : 0) |
     1594          (m_acTEncTop[layerCtr].getMotionPredEnabledFlag(numDirectRefLayers) ? 2 : 0)) - 1);
    15931595#if O0096_DEFAULT_DEPENDENCY_TYPE
    15941596        if (!isDefaultDirectDependencyTypeSet)
     
    16031605        }
    16041606#endif
     1607        numDirectRefLayers ++;
    16051608      }
    16061609      else
Note: See TracChangeset for help on using the changeset viewer.