Changeset 1198 in SHVCSoftware


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

macro cleanup: O0062_POC_LSB_NOT_PRESENT_FLAG

Location:
branches/SHM-dev/source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1185 r1198  
    15651565
    15661566    vps->setMaxOneActiveRefLayerFlag(maxDirectRefLayers > 1 ? false : true);
    1567 #if O0062_POC_LSB_NOT_PRESENT_FLAG
     1567
     1568    // POC LSB not present flag
    15681569    for( i = 1; i< vps->getMaxLayers(); i++ )
    15691570    {
     
    15741575      }
    15751576    }
    1576 #endif
     1577
    15771578    vps->setCrossLayerPictureTypeAlignFlag( m_crossLayerPictureTypeAlignFlag );
    15781579    vps->setCrossLayerAlignedIdrOnlyFlag( m_crossLayerAlignedIdrOnlyFlag );
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1197 r1198  
    19811981
    19821982  m_maxOneActiveRefLayerFlag = true;
    1983 #if O0062_POC_LSB_NOT_PRESENT_FLAG
    19841983  ::memset(m_pocLsbNotPresentFlag, 0, sizeof(m_pocLsbNotPresentFlag));
    1985 #endif
    19861984  m_crossLayerPictureTypeAlignFlag = true;
    19871985  m_crossLayerIrapAlignFlag = true;
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1195 r1198  
    640640  std::vector< std::vector<Int> >  m_profileLevelTierIdx;
    641641  Bool       m_maxOneActiveRefLayerFlag;
    642 #if O0062_POC_LSB_NOT_PRESENT_FLAG
    643642  Bool       m_pocLsbNotPresentFlag[MAX_VPS_LAYER_IDX_PLUS1];
    644 #endif
    645643  Bool       m_crossLayerPictureTypeAlignFlag;
    646644  Bool       m_crossLayerIrapAlignFlag;
     
    942940  Bool   getMaxOneActiveRefLayerFlag()                                          { return m_maxOneActiveRefLayerFlag;             }
    943941  Void   setMaxOneActiveRefLayerFlag(Bool x)                                    { m_maxOneActiveRefLayerFlag = x;                }
    944 #if O0062_POC_LSB_NOT_PRESENT_FLAG
    945942  UInt   getPocLsbNotPresentFlag(Int i)                                         { return m_pocLsbNotPresentFlag[i];              }
    946943  Void   setPocLsbNotPresentFlag(Int i, Bool x)                                 { m_pocLsbNotPresentFlag[i] = x;                 }
    947 #endif
    948944#if P0297_VPS_POC_LSB_ALIGNED_FLAG
    949945  Bool   getVpsPocLsbAlignedFlag()                                              { return m_vpsPocLsbAlignedFlag;                 }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1197 r1198  
    9292#define AUXILIARY_PICTURES               1      ///< JCTVC-O0041: auxiliary picture layers
    9393#define R0062_AUX_PSEUDO_MONOCHROME      1      ///> JCVVC-R0063: pseudo monochrome for auxiliary pictures
    94 #define O0062_POC_LSB_NOT_PRESENT_FLAG   1      ///< JCTVC-O0062: signal poc_lsb_not_present_flag for each layer in VPS extension
    9594#define VPS_DPB_SIZE_TABLE               1      ///< JCTVC-O0217: DPB operations: signaling DPB-related parameters
    9695#define NO_CLRAS_OUTPUT_FLAG             1
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1194 r1198  
    12781278
    12791279#if SVC_EXTENSION
    1280 #if O0062_POC_LSB_NOT_PRESENT_FLAG
    12811280    if( ( pcSlice->getLayerId() > 0 && !pcSlice->getVPS()->getPocLsbNotPresentFlag( pcSlice->getVPS()->getLayerIdxInVps(pcSlice->getLayerId())) ) || !pcSlice->getIdrPicFlag() )
    1282 #else
    1283     if( pcSlice->getLayerId() > 0 || !pcSlice->getIdrPicFlag() )
    1284 #endif
    12851281#else
    12861282    else
     
    30343030  vps->setVpsPocLsbAlignedFlag(uiCode);
    30353031#endif
    3036 #if O0062_POC_LSB_NOT_PRESENT_FLAG
     3032
    30373033  for(i = 1; i< vps->getMaxLayers(); i++)
    30383034  {
     
    30433039    }
    30443040  }
    3045 #endif
    30463041
    30473042#if VPS_DPB_SIZE_TABLE
     
    31863181#endif
    31873182
    3188 #if O0062_POC_LSB_NOT_PRESENT_FLAG
    31893183  // When not present, poc_lsb_not_present_flag[ i ] is inferred to be equal to 0.
    3190   for(i = 1; i< vps->getMaxLayers(); i++)
     3184  for( i = 1; i< vps->getMaxLayers(); i++ )
    31913185  {
    31923186    vps->setPocLsbNotPresentFlag(i, 0);
    31933187  }
    3194 #endif
    31953188
    31963189  // set default values for VPS VUI
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1191 r1198  
    980980
    981981#if SVC_EXTENSION
    982 #if O0062_POC_LSB_NOT_PRESENT_FLAG
    983982    if( (pcSlice->getLayerId() > 0 && !pcSlice->getVPS()->getPocLsbNotPresentFlag( pcSlice->getVPS()->getLayerIdxInVps(pcSlice->getLayerId())) ) || !pcSlice->getIdrPicFlag())
    984 #else
    985     if( pcSlice->getLayerId() > 0 || !pcSlice->getIdrPicFlag() )
    986 #endif
    987983#else
    988984    if( !pcSlice->getIdrPicFlag() )
     
    21962192  WRITE_FLAG(vps->getVpsPocLsbAlignedFlag(), "vps_poc_lsb_aligned_flag");
    21972193#endif
    2198 #if O0062_POC_LSB_NOT_PRESENT_FLAG
    2199   for(i = 1; i< vps->getMaxLayers(); i++)
     2194
     2195  for( i = 1; i< vps->getMaxLayers(); i++ )
    22002196  {
    22012197    if( vps->getNumDirectRefLayers( vps->getLayerIdInNuh(i) ) == 0  )
     
    22042200    }
    22052201  }
    2206 #endif
    22072202 
    22082203#if VPS_DPB_SIZE_TABLE
Note: See TracChangeset for help on using the changeset viewer.