Changeset 1156 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 00:36:28 (9 years ago)
Author:
seregin
Message:

macro cleanup: Q0165_OUTPUT_LAYER_SET

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

Legend:

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

    r1155 r1156  
    157157#define MAX_REF_LAYERS                   7
    158158#endif
    159 #define Q0165_OUTPUT_LAYER_SET           1      ///< JCTVC-Q0165: add a constraint to disallow an empty output layer set
    160159
    161160#define Q0078_ADD_LAYER_SETS             1      ///< JCTVC-Q0078: additional layer sets and layer set config
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1155 r1156  
    30123012
    30133013    NumOutputLayersInOutputLayerSet[i] = 0;
    3014     for (j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++)
     3014
     3015    for( j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++ )
    30153016    {
    30163017      NumOutputLayersInOutputLayerSet[i] += vps->getOutputLayerFlag(i, j);
    3017       if (vps->getOutputLayerFlag(i, j))
     3018      if( vps->getOutputLayerFlag(i, j) )
    30183019      {
    30193020        OlsHighestOutputLayerId[i] = vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j);
    30203021      }
    30213022    }
    3022     if (NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0)
     3023    if( NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0 )
    30233024    {
    30243025      READ_FLAG(uiCode, "alt_output_layer_flag[i]");
     
    30323033    }
    30333034#endif
    3034 #if Q0165_OUTPUT_LAYER_SET
    3035     assert( NumOutputLayersInOutputLayerSet[i]>0 );
    3036 #endif
     3035
     3036    assert( NumOutputLayersInOutputLayerSet[i] > 0 );
    30373037  }
    30383038
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1155 r1156  
    21982198
    21992199    NumOutputLayersInOutputLayerSet[i] = 0;
    2200     for (j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++)
     2200
     2201    for( j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++ )
    22012202    {
    22022203      NumOutputLayersInOutputLayerSet[i] += vps->getOutputLayerFlag(i, j);
    2203       if (vps->getOutputLayerFlag(i, j))
     2204      if( vps->getOutputLayerFlag(i, j) )
    22042205      {
    22052206        OlsHighestOutputLayerId[i] = vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j);
    22062207      }
    22072208    }
    2208     if (NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0)
     2209    if( NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0 )
    22092210    {
    22102211      WRITE_FLAG(vps->getAltOuputLayerFlag(i), "alt_output_layer_flag[i]");
    22112212    }
    22122213
    2213 #if Q0165_OUTPUT_LAYER_SET
    2214     assert( NumOutputLayersInOutputLayerSet[i]>0 );
    2215 #endif
     2214    assert( NumOutputLayersInOutputLayerSet[i] > 0 );
    22162215  }
    22172216
Note: See TracChangeset for help on using the changeset viewer.