Changeset 451 in SHVCSoftware


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

remove VPS_SPLIT_FLAG macro

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.0-dev/source/Lib/TLibCommon/TypeDef.h

    r450 r451  
    7979#define VPS_PROFILE_OUTPUT_LAYERS        1      ///< JCTVC-M0268: Signal profile information and output layer information as in Sec. 3 of M0268v2
    8080#define SPS_SUB_LAYER_INFO               1      ///< JCTVC-M0268: Do not signal sps_max_sub_layers_minus1 and sps_temporal_id_nesting_flag for nuh_layer_id greater than 0
    81 #define VPS_SPLIT_FLAG                   1      ///< JCTVC-M0163: Do not signal dimension_id and the last dimension_id_len_minus1, when splitting_flag is equal to 1.
    8281#define M0457_PREDICTION_INDICATIONS     1
    8382#define M0040_ADAPTIVE_RESOLUTION_CHANGE 1
  • 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  }
  • branches/SHM-4.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r448 r451  
    827827  }
    828828
    829 #if VPS_SPLIT_FLAG
    830829  for(j = 0; j < vps->getNumScalabilityTypes() - vps->getSplittingFlag(); j++)
    831 #else
    832   for(j = 0; j < vps->getNumScalabilityTypes(); j++)
    833 #endif
    834830  {
    835831    WRITE_CODE( vps->getDimensionIdLen(j) - 1, 3,      "dimension_id_len_minus1[j]" );
     
    855851      WRITE_CODE( vps->getLayerIdInNuh(i),     6,      "layer_id_in_nuh[i]" );
    856852    }
    857 #if VPS_SPLIT_FLAG
    858     if(!vps->getSplittingFlag())
    859 #endif
    860     for(j = 0; j < vps->getNumScalabilityTypes(); j++)
    861     {
    862       UInt bits = vps->getDimensionIdLen(j);
    863       WRITE_CODE( vps->getDimensionId(i, j),   bits,   "dimension_id[i][j]" );
     853
     854    if( !vps->getSplittingFlag() )
     855    {
     856      for(j = 0; j < vps->getNumScalabilityTypes(); j++)
     857      {
     858        UInt bits = vps->getDimensionIdLen(j);
     859        WRITE_CODE( vps->getDimensionId(i, j),   bits,   "dimension_id[i][j]" );
     860      }
    864861    }
    865862  }
Note: See TracChangeset for help on using the changeset viewer.