Changeset 225 in SHVCSoftware


Ignore:
Timestamp:
22 May 2013, 21:12:45 (12 years ago)
Author:
qualcomm
Message:

Define sps_extension() syntax structure (MACRO: SPS_EXTENSION)

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-2.0-dev/source/Lib
Files:
5 edited

Legend:

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

    r207 r225  
    4444
    4545#if SVC_EXTENSION
     46#define SPS_EXTENSION                    1      ///< Define sps_extension() syntax structure
    4647#define SCALED_REF_LAYER_OFFSETS         1      ///< M0309: Signal scaled reference layer offsets in SPS
    4748#define MAX_LAYERS                       2      ///< max number of layers the codec is supposed to handle
  • branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r185 r225  
    727727  if (uiCode)
    728728  {
    729     while ( xMoreRbspData() )
    730     {
    731       READ_FLAG( uiCode, "sps_extension_data_flag");
    732     }
    733   }
    734 }
    735 
     729#if SPS_EXTENSION
     730    parseSPSExtension( pcSPS );
     731    READ_FLAG( uiCode, "sps_extension2_flag");
     732    if(uiCode)
     733    {
     734#endif
     735      while ( xMoreRbspData() )
     736      {
     737        READ_FLAG( uiCode, "sps_extension_data_flag");
     738      }
     739#if SPS_EXTENSION
     740    }
     741#endif
     742  }
     743}
     744
     745#if SPS_EXTENSION
     746Void TDecCavlc::parseSPSExtension( TComSPS* pcSPS )
     747{
     748  // syntax elements to be parsed here
     749}
     750#endif
    736751Void TDecCavlc::parseVPS(TComVPS* pcVPS)
    737752{
  • branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecCAVLC.h

    r133 r225  
    7676#endif
    7777  Void  parseSPS            ( TComSPS* pcSPS );
     78#if SPS_EXTENSION
     79  Void  parseSPSExtension   ( TComSPS* pcSPS );
     80#endif
    7881  Void  parsePPS            ( TComPPS* pcPPS);
    7982  Void  parseVUI            ( TComVUI* pcVUI, TComSPS* pcSPS );
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r186 r225  
    564564#endif
    565565
     566#if SPS_EXTENSION
     567  WRITE_FLAG( 1, "sps_extension_flag" );
     568  if( 1 )   // if( sps_extension_flag )
     569  {
     570    codeSPSExtension( pcSPS );
     571    WRITE_FLAG( 0, "sps_extension2_flag" );
     572  }
     573#else
    566574  WRITE_FLAG( 0, "sps_extension_flag" );
    567 }
    568 
     575#endif
     576}
     577#if SPS_EXTENSION
     578Void TEncCavlc::codeSPSExtension( TComSPS* pcSPS )
     579{
     580  // syntax elements to be written here
     581}
     582#endif
    569583Void TEncCavlc::codeVPS( TComVPS* pcVPS )
    570584{
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncCavlc.h

    r133 r225  
    8989  Void  codeVUI                 ( TComVUI *pcVUI, TComSPS* pcSPS );
    9090  Void  codeSPS                 ( TComSPS* pcSPS );
     91#if SPS_EXTENSION
     92  Void codeSPSExtension         ( TComSPS* pcSPS );
     93#endif
    9194  Void  codePPS                 ( TComPPS* pcPPS );
    9295  Void  codeSliceHeader         ( TComSlice* pcSlice );
Note: See TracChangeset for help on using the changeset viewer.