Changeset 622 in SHVCSoftware


Ignore:
Timestamp:
6 Mar 2014, 18:25:43 (11 years ago)
Author:
seregin
Message:

add pps_extension_type_flag with macro P0166_MODIFIED_PPS_EXTENSION (JCTVC-P0166), patch was provided by Yue Yu <Yue.Yu@…>

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

Legend:

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

    r617 r622  
    236236
    237237#define P0138_USE_ALT_CPB_PARAMS_FLAG    1      ///< JCTVC-P0138: use_alt_cpb_params_flag syntax in buffering period SEI message extension
     238#define P0166_MODIFIED_PPS_EXTENSION     1      ///< JCTVC-P0166: add pps_extension_type_flag
    238239
    239240#if VIEW_ID_RELATED_SIGNALING
  • branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r621 r622  
    334334  if (uiCode)
    335335  {
     336#if P0166_MODIFIED_PPS_EXTENSION
     337    UInt ppsExtensionTypeFlag[8];
     338    for (UInt i = 0; i < 8; i++)
     339    {
     340      READ_FLAG( ppsExtensionTypeFlag[i], "pps_extension_type_flag" );
     341    }
     342    if (ppsExtensionTypeFlag[1])
     343    {
     344    }
     345    if (ppsExtensionTypeFlag[7])
     346    {
     347#endif
     348
    336349    while ( xMoreRbspData() )
    337350    {
    338351      READ_FLAG( uiCode, "pps_extension_data_flag");
    339352    }
     353#if P0166_MODIFIED_PPS_EXTENSION
     354    }
     355#endif
    340356  }
    341357}
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r621 r622  
    251251  WRITE_UVLC( pcPPS->getLog2ParallelMergeLevelMinus2(), "log2_parallel_merge_level_minus2");
    252252  WRITE_FLAG( pcPPS->getSliceHeaderExtensionPresentFlag() ? 1 : 0, "slice_segment_header_extension_present_flag");
     253#if P0166_MODIFIED_PPS_EXTENSION
     254  WRITE_FLAG( 1, "pps_extension_flag" );
     255  if( 1 ) //pps_extension_flag
     256  {
     257    UInt ppsExtensionTypeFlag[8] = { 0, 1, 0, 0, 0, 0, 0, 0 };
     258    for (UInt i = 0; i < 8; i++)
     259    {
     260      WRITE_FLAG( ppsExtensionTypeFlag[i], "pps_extension_type_flag" );
     261    }
     262    if( ppsExtensionTypeFlag[1] )
     263    {
     264    }
     265  }
     266#else
    253267  WRITE_FLAG( 0, "pps_extension_flag" );
     268#endif
    254269}
    255270
Note: See TracChangeset for help on using the changeset viewer.