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


Ignore:
Timestamp:
6 Jul 2015, 20:36:06 (11 years ago)
Author:
seregin
Message:

macro cleanup: VPS_FIX_TO_MATCH_SPEC

File:
1 edited

Legend:

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

    r1102 r1104  
    30413041  for(i = 1; i < numOutputLayerSets; i++)
    30423042  {
    3043 #if VPS_FIX_TO_MATCH_SPEC
    30443043    if( vps->getNumLayerSets() > 2 && i >= vps->getNumLayerSets() )
    3045 #else
    3046     if( i > (vps->getNumLayerSets() - 1) )
    3047 #endif
    30483044    {
    30493045      Int numBits = 1;
     
    30603056    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx(i);
    30613057#if Q0078_ADD_LAYER_SETS
    3062 #if VPS_FIX_TO_MATCH_SPEC
    30633058    if( i > vps->getVpsNumLayerSetsMinus1() || vps->getDefaultTargetOutputLayerIdc() == 2 )
    30643059#else
    3065     if( i > vps->getVpsNumLayerSetsMinus1() || vps->getDefaultTargetOutputLayerIdc() >= 2 )
    3066 #endif
    3067 #else
    3068 #if VPS_FIX_TO_MATCH_SPEC
    30693060    if( i > (vps->getNumLayerSets() - 1) || vps->getDefaultTargetOutputLayerIdc() == 2 )
    3070 #else
    3071     if( i > (vps->getNumLayerSets() - 1) || vps->getDefaultTargetOutputLayerIdc() >= 2 )
    3072 #endif
    30733061#endif
    30743062    {
     
    31133101    for(j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet) ; j++)
    31143102    {
    3115 #if VPS_FIX_TO_MATCH_SPEC
    31163103      if( vps->getNecessaryLayerFlag(i, j) && (vps->getNumProfileTierLevel()-1) > 0 )
    3117 #else
    3118       if( vps->getNecessaryLayerFlag(i, j) )
    3119 #endif
    31203104      {
    31213105        READ_CODE( numBitsForPtlIdx, uiCode, "profile_tier_level_idx[i]" );
     
    33173301  if( vps->getRepFormatIdxPresentFlag() )
    33183302  {
    3319 #if VPS_FIX_TO_MATCH_SPEC
    33203303    for( i = vps->getBaseLayerInternalFlag() ? 1 : 0; i < vps->getMaxLayers(); i++ )
    3321 #else
    3322     for (i = 1; i < vps->getMaxLayers(); i++)
    3323 #endif
    33243304    {
    33253305      Int numBits = 1;
     
    34523432#endif
    34533433
    3454 #if VPS_FIX_TO_MATCH_SPEC
    34553434  for( i = vps->getBaseLayerInternalFlag() ? 1 : 2; i < vps->getMaxLayers(); i++ )
    3456 #else
    3457   for(i = 1; i < vps->getMaxLayers(); i++)
    3458 #endif
    3459   {
    3460 #if VPS_FIX_TO_MATCH_SPEC
     3435  {
    34613436    for( j = vps->getBaseLayerInternalFlag() ? 0 : 1; j < i; j++ )
    3462 #else
    3463     for(j = 0; j < i; j++)
    3464 #endif
    34653437    {
    34663438      if (vps->getDirectDependencyFlag(i, j))
     
    38203792            uiCode=0;
    38213793
    3822 #if VPS_FIX_TO_MATCH_SPEC
    38233794        if( vps->getNecessaryLayerFlag(i, k) && ( vps->getBaseLayerInternalFlag() || vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) ) )
    3824 #else
    3825         if(vps->getBaseLayerInternalFlag() || ( vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) !=  0 ) )
    3826 #endif
    38273795#endif
    38283796          READ_UVLC( uiCode, "max_vps_dec_pic_buffering_minus1[i][k][j]" ); vps->setMaxVpsDecPicBufferingMinus1( i, k, j, uiCode );
     
    40704038  if (!uiCode)
    40714039  {
    4072 #if VPS_FIX_TO_MATCH_SPEC
    40734040    for( i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++ )
    4074 #else
    4075     for (i = 0; i < vps->getMaxLayers(); i++)
    4076 #endif
    40774041    {
    40784042      READ_FLAG( uiCode, "tiles_in_use_flag[ i ]" ); vps->setTilesInUseFlag(i, (uiCode == 1));
     
    40884052#endif
    40894053
    4090 #if VPS_FIX_TO_MATCH_SPEC
    40914054      for( i = vps->getBaseLayerInternalFlag() ? 1 : 2; i < vps->getMaxLayers(); i++ )
    4092 #else
    4093       for (i = 1; i < vps->getMaxLayers(); i++)
    4094 #endif
    40954055    {
    40964056      for(j = 0; j < vps->getNumDirectRefLayers(vps->getLayerIdInNuh(i)); j++)
     
    41134073  if (!uiCode)
    41144074  {
    4115 #if VPS_FIX_TO_MATCH_SPEC
    41164075      for (i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++)
    4117 #else
    4118       for (i = 0; i < vps->getMaxLayers(); i++)
    4119 #endif
    41204076    {
    41214077      READ_FLAG( uiCode, "wpp_in_use_flag[ i ]" ); vps->setWppInUseFlag(i, (uiCode == 1));
     
    41464102      for(j = 0; j < vps->getNumDirectRefLayers(vps->getLayerIdInNuh(i)); j++)
    41474103      {
    4148 #if VPS_FIX_TO_MATCH_SPEC
    41494104        if( vps->getBaseLayerInternalFlag() || vps->getRefLayerId(vps->getLayerIdInNuh(i), j) )
    41504105        {
    4151 #endif
    41524106          READ_UVLC( uiCode, "min_spatial_segment_offset_plus1[i][j]" ); vps->setMinSpatialSegmentOffsetPlus1( i, j, uiCode );
    41534107          if( vps->getMinSpatialSegmentOffsetPlus1(i,j ) > 0 )
     
    41594113            }
    41604114          }
    4161 #if VPS_FIX_TO_MATCH_SPEC
    4162         }
    4163 #endif
     4115        }
    41644116      }
    41654117    }
     
    45754527    }
    45764528  }
    4577 #if VPS_FIX_TO_MATCH_SPEC
    45784529  if( vps->getNumHrdParameters() + vps->getVpsNumAddHrdParams() > 0 )
    45794530  {
    4580 #endif
    45814531    for (Int h = 1; h < vps->getNumOutputLayerSets(); h++)
    45824532    {
    45834533      Int lsIdx = vps->getOutputLayerSetIdx(h);
    45844534      READ_UVLC(uiCode, "num_signalled_partitioning_schemes[h]"); vps->setNumSignalledPartitioningSchemes(h, uiCode);
    4585 #if VPS_FIX_TO_MATCH_SPEC
    45864535      for (Int j = 1; j < vps->getNumSignalledPartitioningSchemes(h) + 1; j++)
    4587 #else
    4588       for (Int j = 0; j < vps->getNumSignalledPartitioningSchemes(h); j++)
    4589 #endif
    45904536      {
    45914537        READ_UVLC(uiCode, "num_partitions_in_scheme_minus1[h][j]"); vps->setNumPartitionsInSchemeMinus1(h, j, uiCode);
     
    46054551          for (Int j = 0; j <= vps->getNumBspSchedulesMinus1(h, i, t); j++)
    46064552          {
    4607 #if VPS_FIX_TO_MATCH_SPEC
    46084553            for( Int k = 0; k <= vps->getNumPartitionsInSchemeMinus1(h, i); k++ )
    4609 #else
    4610             for (Int k = 0; k < vps->getNumPartitionsInSchemeMinus1(h, i); k++)
    4611 #endif
    46124554            {
    4613 #if VPS_FIX_TO_MATCH_SPEC
    46144555              if( vps->getNumHrdParameters() + vps->getVpsNumAddHrdParams() > 1 )
    46154556              {
     
    46214562                READ_CODE(numBits, uiCode, "bsp_comb_hrd_idx[h][i][t][j][k]");      vps->setBspHrdIdx(h, i, t, j, k, uiCode);
    46224563              }
    4623 #else
    4624               READ_UVLC(uiCode, "bsp_comb_hrd_idx[h][i][t][j][k]");      vps->setBspHrdIdx(h, i, t, j, k, uiCode);
    4625 #endif
    46264564              READ_UVLC(uiCode, "bsp_comb_sched_idx[h][i][t][j][k]");    vps->setBspSchedIdx(h, i, t, j, k, uiCode);
    46274565            }
     
    46344572
    46354573    }
    4636 #if VPS_FIX_TO_MATCH_SPEC
    4637   }
    4638 #endif
     4574  }
    46394575}
    46404576#endif
Note: See TracChangeset for help on using the changeset viewer.