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


Ignore:
Timestamp:
8 Nov 2013, 07:09:02 (11 years ago)
Author:
seregin
Message:

remove VPS_SPLIT_FLAG macro

File:
1 edited

Legend:

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

    r448 r451  
    10101010  vps->setNumScalabilityTypes(numScalabilityTypes);
    10111011
    1012 #if VPS_SPLIT_FLAG
    10131012  for(j = 0; j < numScalabilityTypes - vps->getSplittingFlag(); j++)
    1014 #else
    1015   for(j = 0; j < numScalabilityTypes; j++)
    1016 #endif
    10171013  {
    10181014    READ_CODE( 3, uiCode, "dimension_id_len_minus1[j]" ); vps->setDimensionIdLen(j, uiCode + 1);
    10191015  }
    1020 #if VPS_SPLIT_FLAG
     1016
    10211017  if(vps->getSplittingFlag())
    10221018  {
     
    10301026    numBits = 6;
    10311027  }
    1032 #else
    1033   if(vps->getSplittingFlag())
    1034   {
    1035     UInt numBits = 0;
    1036     for(j = 0; j < numScalabilityTypes; j++)
    1037     {
    1038       numBits += vps->getDimensionIdLen(j);
    1039     }
    1040     assert( numBits <= 6 );
    1041   }
    1042 #endif
    10431028
    10441029  READ_FLAG( uiCode, "vps_nuh_layer_id_present_flag" ); vps->setNuhLayerIdPresentFlag(uiCode ? true : false);
     
    10581043    vps->setLayerIdInVps(vps->getLayerIdInNuh(i), i);
    10591044
    1060 #if VPS_SPLIT_FLAG
    1061     if(!vps->getSplittingFlag())
    1062 #endif
    1063     for(j = 0; j < numScalabilityTypes; j++)
    1064     {
    1065       READ_CODE( vps->getDimensionIdLen(j), uiCode, "dimension_id[i][j]" ); vps->setDimensionId(i, j, uiCode);
    1066       assert( uiCode <= vps->getMaxLayerId() );
     1045    if( !vps->getSplittingFlag() )
     1046    {
     1047      for(j = 0; j < numScalabilityTypes; j++)
     1048      {
     1049        READ_CODE( vps->getDimensionIdLen(j), uiCode, "dimension_id[i][j]" ); vps->setDimensionId(i, j, uiCode);
     1050        assert( uiCode <= vps->getMaxLayerId() );
     1051      }
    10671052    }
    10681053  }
Note: See TracChangeset for help on using the changeset viewer.