Changeset 976 in SHVCSoftware


Ignore:
Timestamp:
9 Jan 2015, 19:45:19 (10 years ago)
Author:
qualcomm
Message:

Fix for bug in populating PTL into VPS as described in ticket #47 posted by jpadia@….

Solution: Instead of using reference ProfileTierLevel& profileTierLevel into a pointer such as ProfileTierLevel* profileTierLevel, the fix simply remove the use of new variable and access the GeneralPTL in VPS directly.

File:
1 edited

Legend:

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

    r973 r976  
    203203  //Populate PTL in VPS
    204204  TComVPS *pVPS = m_acTEncTop[0].getVPS();
    205   ProfileTierLevel& profileTierLevel = *(pVPS->getPTL(0)->getGeneralPTL());
    206205  for (int ii = 0; ii < m_numPTLInfo; ii++)
    207206  {
    208     profileTierLevel = *(pVPS->getPTL(ii)->getGeneralPTL());
    209 
    210     profileTierLevel.setLevelIdc(m_levelList[ii]);
    211     profileTierLevel.setTierFlag(m_levelTierList[ii]);
    212     profileTierLevel.setProfileIdc(m_profileList[ii]);
    213     profileTierLevel.setProfileCompatibilityFlag(m_profileCompatibility[ii], 1);
    214     profileTierLevel.setProgressiveSourceFlag(m_progressiveSourceFlagList[ii]);
    215     profileTierLevel.setInterlacedSourceFlag(m_interlacedSourceFlagList[ii]);
    216     profileTierLevel.setNonPackedConstraintFlag(m_nonPackedConstraintFlagList[ii]);
    217     profileTierLevel.setFrameOnlyConstraintFlag(m_frameOnlyConstraintFlagList[ii]);
     207    pVPS->getPTL(ii)->getGeneralPTL()->setLevelIdc(m_levelList[ii]);
     208    pVPS->getPTL(ii)->getGeneralPTL()->setTierFlag(m_levelTierList[ii]);
     209    pVPS->getPTL(ii)->getGeneralPTL()->setProfileIdc(m_profileList[ii]);
     210    pVPS->getPTL(ii)->getGeneralPTL()->setProfileCompatibilityFlag(m_profileCompatibility[ii], 1);
     211    pVPS->getPTL(ii)->getGeneralPTL()->setProgressiveSourceFlag(m_progressiveSourceFlagList[ii]);
     212    pVPS->getPTL(ii)->getGeneralPTL()->setInterlacedSourceFlag(m_interlacedSourceFlagList[ii]);
     213    pVPS->getPTL(ii)->getGeneralPTL()->setNonPackedConstraintFlag(m_nonPackedConstraintFlagList[ii]);
     214    pVPS->getPTL(ii)->getGeneralPTL()->setFrameOnlyConstraintFlag(m_frameOnlyConstraintFlagList[ii]);
    218215  }
    219216  pVPS->setNumProfileTierLevel(m_numPTLInfo);
Note: See TracChangeset for help on using the changeset viewer.