Changeset 515 in SHVCSoftware for branches/SHM-4.1-dev/source


Ignore:
Timestamp:
16 Dec 2013, 20:55:32 (11 years ago)
Author:
seregin
Message:

JCTVC_O0142: Conditional SPS extension with macro O0142_CONDITIONAL_SPS_EXTENSION, patch was provided by Danny Hong <danny@…>

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

Legend:

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

    r514 r515  
    6666#define M0463_VUI_EXT_ILP_REF            0      ///< JCTVC-M0463: VUI extension inter-layer dependency offset signalling
    6767#define SPS_EXTENSION                    1      ///< Define sps_extension() syntax structure
     68#if SPS_EXTENSION
     69#define O0142_CONDITIONAL_SPS_EXTENSION  1      ///< JCTVC-O0142: Conditional SPS extension
     70#endif
    6871#define VERT_MV_CONSTRAINT               1      ///< Vertical MV component constraint flag
    6972#define SCALABILITY_MASK_E0104           1      ///< JCT3V-E0104: scalability mask for depth
  • branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r514 r515  
    828828  {
    829829#if SPS_EXTENSION
     830
     831#if O0142_CONDITIONAL_SPS_EXTENSION
     832    UInt spsExtensionTypeFlag[8];
     833    for (UInt i = 0; i < 8; i++)
     834    {
     835      READ_FLAG( spsExtensionTypeFlag[i], "sps_extension_type_flag" );
     836    }
     837    if (spsExtensionTypeFlag[1])
     838    {
     839      parseSPSExtension( pcSPS );
     840    }
     841    if (spsExtensionTypeFlag[7])
     842    {
     843#else
    830844    parseSPSExtension( pcSPS );
    831845    READ_FLAG( uiCode, "sps_extension2_flag");
    832846    if(uiCode)
    833847    {
     848#endif
     849
    834850#endif
    835851      while ( xMoreRbspData() )
  • branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r514 r515  
    662662  if( 1 )   // if( sps_extension_flag )
    663663  {
     664#if O0142_CONDITIONAL_SPS_EXTENSION
     665    UInt spsExtensionTypeFlag[8] = { 0, 1, 0, 0, 0, 0, 0, 0 };
     666    for (UInt i = 0; i < 8; i++)
     667    {
     668      WRITE_FLAG( spsExtensionTypeFlag[i], "sps_extension_type_flag" );
     669    }
     670    if (spsExtensionTypeFlag[1])
     671    {
     672      codeSPSExtension( pcSPS );
     673    }
     674#else
    664675    codeSPSExtension( pcSPS );
    665676    WRITE_FLAG( 0, "sps_extension2_flag" );
     677#endif
    666678  }
    667679#else
Note: See TracChangeset for help on using the changeset viewer.