Changeset 484 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
16 Nov 2013, 00:32:03 (11 years ago)
Author:
qualcomm
Message:

Integration of O0225 proposal 2 for all reference layers.

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r479 r484  
    10981098    for(i = 0; i < vps->getMaxLayers() - 1; i++)
    10991099    {
     1100#if O0225_MAX_TID_FOR_REF_LAYERS
     1101       for( j = i+1; j <= vps->getMaxLayers() - 1; j++)
     1102       {
     1103         if(vps->getDirectDependencyFlag(j, i))
     1104         {
     1105           READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i][j]" ); vps->setMaxTidIlRefPicsPlus1(i, j, uiCode);
     1106           assert( uiCode <= vps->getMaxTLayers());
     1107         }
     1108       }
     1109#else
    11001110      READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode);
    11011111#if N0120_MAX_TID_REF_CFG
     
    11041114      assert( uiCode <= vps->getMaxTLayers()+ 1 );
    11051115#endif
     1116#endif
    11061117    }
    11071118  }
     
    11101121    for(i = 0; i < vps->getMaxLayers() - 1; i++)
    11111122    {
     1123#if O0225_MAX_TID_FOR_REF_LAYERS
     1124       for( j = i+1; j <= vps->getMaxLayers() - 1; j++)
     1125       {
     1126          vps->setMaxTidIlRefPicsPlus1(i, j, 7);
     1127       }
     1128#else
    11121129      vps->setMaxTidIlRefPicsPlus1(i, 7);
     1130#endif
    11131131    }
    11141132  }
     
    11161134  for(i = 0; i < vps->getMaxLayers() - 1; i++)
    11171135  {
     1136#if O0225_MAX_TID_FOR_REF_LAYERS
     1137       for( j = i+1; j <= vps->getMaxLayers() - 1; j++)
     1138       {
     1139         if(vps->getDirectDependencyFlag(j, i))
     1140         {
     1141           READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i][j]" ); vps->setMaxTidIlRefPicsPlus1(i, j, uiCode);
     1142           assert( uiCode <= vps->getMaxTLayers() );
     1143         }
     1144       }
     1145#else
    11181146    READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode);
    11191147    assert( uiCode <= vps->getMaxTLayers() );
     1148#endif   
    11201149  }
    11211150#endif
  • branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r475 r484  
    498498
    499499  Int remainingInterLayerReferencesFlag = 0;
     500#if O0225_MAX_TID_FOR_REF_LAYERS
     501  for ( Int j = latestDecIdx + 1; j < numTargetDecLayers; j++ )
     502  {
     503    Int jLidx = pcSlice->getVPS()->getLayerIdInVps(targetDecLayerIdList[j]);
     504    if ( currTid <= pcSlice->getVPS()->getMaxTidIlRefPicsPlus1(latestDecLayerId,jLidx) - 1 )
     505    {
     506#else
    500507  if ( currTid <= pcSlice->getVPS()->getMaxTidIlRefPicsPlus1(latestDecLayerId) - 1 )
    501508  {
    502509    for ( Int j = latestDecIdx + 1; j < numTargetDecLayers; j++ )
    503510    {
     511#endif
    504512      for ( Int k = 0; k < m_ppcTDecTop[targetDecLayerIdList[j]]->getNumDirectRefLayers(); k++ )
    505513      {
Note: See TracChangeset for help on using the changeset viewer.