Changeset 795 in SHVCSoftware


Ignore:
Timestamp:
6 Jun 2014, 20:36:57 (11 years ago)
Author:
seregin
Message:

remove SPS_EXTENSION

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp

    r791 r795  
    29132913#if SVC_EXTENSION
    29142914, m_layerId                   ( 0 )
     2915, m_extensionFlag             ( false )
    29152916, m_numScaledRefLayerOffsets  ( 0 )
    29162917#if REPN_FORMAT_IN_VPS
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.h

    r791 r795  
    14931493#if SVC_EXTENSION
    14941494  UInt        m_layerId;
     1495  Bool        m_extensionFlag;
    14951496  UInt        m_numScaledRefLayerOffsets;
    14961497#if P0312_VERT_PHASE_ADJ
     
    16511652  Void     setLayerId(UInt layerId)            { m_layerId = layerId; }
    16521653  UInt     getLayerId()                        { return m_layerId;    }
     1654  Int      getExtensionFlag()                  { return m_extensionFlag;  }
     1655  Void     setExtensionFlag(Int n)             { m_extensionFlag = n;     }
    16531656  UInt     getNumScaledRefLayerOffsets()       { return m_numScaledRefLayerOffsets; }
    16541657  Void     setNumScaledRefLayerOffsets(Int x)  { m_numScaledRefLayerOffsets = x;    }
  • branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h

    r794 r795  
    112112
    113113#define SCALINGLIST_INFERRING            1      ///< JCTVC-N0371: inter-layer scaling list
    114 #define SPS_EXTENSION                    1      ///< Define sps_extension() syntax structure
    115 #if SPS_EXTENSION
    116114#define O0142_CONDITIONAL_SPS_EXTENSION  1      ///< JCTVC-O0142: Conditional SPS extension
    117 #endif
    118115#define SCALABILITY_MASK_E0104           1      ///< JCT3V-E0104: scalability mask for depth
    119116#if POC_RESET_FLAG
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r793 r795  
    848848
    849849  READ_FLAG( uiCode, "sps_extension_flag");
    850   if (uiCode)
    851   {
    852 #if SPS_EXTENSION
    853 
     850
     851#if SVC_EXTENSION
     852  pcSPS->setExtensionFlag( uiCode ? true : false );
     853
     854  if( pcSPS->getExtensionFlag() )
     855  {
    854856#if O0142_CONDITIONAL_SPS_EXTENSION
    855857    UInt spsExtensionTypeFlag[8];
     
    870872    {
    871873#endif
    872 
    873 #endif
    874874      while ( xMoreRbspData() )
    875875      {
    876876        READ_FLAG( uiCode, "sps_extension_data_flag");
    877877      }
    878 #if SPS_EXTENSION
    879     }
    880 #endif
    881   }
    882 }
    883 
    884 #if SPS_EXTENSION
     878    }
     879  }
     880#else
     881  if (uiCode)
     882  {
     883    while ( xMoreRbspData() )
     884    {
     885      READ_FLAG( uiCode, "sps_extension_data_flag");
     886    }
     887  }
     888#endif
     889}
     890
     891#if SVC_EXTENSION
    885892Void TDecCavlc::parseSPSExtension( TComSPS* pcSPS )
    886893{
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.h

    r793 r795  
    7575  Void  parseQtRootCbf      ( UInt uiAbsPartIdx, UInt& uiQtRootCbf );
    7676  Void  parseVPS            ( TComVPS* pcVPS );
    77 #if SPS_EXTENSION
     77#if SVC_EXTENSION
    7878  Void  parseVPSExtension   ( TComVPS* pcVPS );
    7979  Void  defaultVPSExtension ( TComVPS* pcVPS );
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r793 r795  
    639639  }
    640640
    641 #if SPS_EXTENSION
    642   WRITE_FLAG( 1, "sps_extension_flag" );
    643   if( 1 )   // if( sps_extension_flag )
     641#if SVC_EXTENSION
     642  WRITE_FLAG( pcSPS->getExtensionFlag() ? 1 : 0, "sps_extension_flag" );
     643
     644  if( pcSPS->getExtensionFlag() )
    644645  {
    645646#if O0142_CONDITIONAL_SPS_EXTENSION
     
    662663#endif
    663664}
    664 #if SPS_EXTENSION
     665
     666#if SVC_EXTENSION
    665667Void TEncCavlc::codeSPSExtension( TComSPS* pcSPS )
    666668{
     
    689691  }
    690692}
    691 #endif
     693#endif //SVC_EXTENSION
     694
    692695Void TEncCavlc::codeVPS( TComVPS* pcVPS )
    693696{
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.h

    r793 r795  
    159159  Void codeDFSvlc       ( Int   iCode, const Char *pSymbolName );
    160160
    161 #if SPS_EXTENSION
     161#if SVC_EXTENSION
    162162  Void codeSPSExtension        ( TComSPS* pcSPS );
    163163  Void codeVPSExtension        ( TComVPS* pcVPS );
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r778 r795  
    912912{
    913913#if SVC_EXTENSION
     914  m_cSPS.setExtensionFlag( m_layerId > 0 ? true : false );
     915
    914916#if Q0078_ADD_LAYER_SETS
    915917  if (getNumDirectRefLayers() == 0 && getNumAddLayerSets() > 0)
Note: See TracChangeset for help on using the changeset viewer.