Changeset 623 in SHVCSoftware


Ignore:
Timestamp:
7 Mar 2014, 03:23:54 (11 years ago)
Author:
qualcomm
Message:

JCTVC-P0041 (partial): Signal poc_reset_info_present_flag (Macro: POC_RESET_IDC)

Includes signalling of poc_reset_info_present_flag, and fix a bug in value of pps_extension_type_flag. Usage of this flag poc_reset_info_present_flag will be submitted in a later commit.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

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

    r621 r623  
    27382738, m_scalingListRefLayerId ( 0 )
    27392739#endif
     2740#if POC_RESET_IDC
     2741, m_pocResetInfoPresentFlag   (false)
     2742#endif
    27402743{
    27412744  m_scalingList = new TComScalingList;
  • branches/SHM-5.1-dev/source/Lib/TLibCommon/TComSlice.h

    r613 r623  
    16561656  UInt     m_scalingListRefLayerId;
    16571657#endif
     1658#if POC_RESET_IDC
     1659  Bool     m_pocResetInfoPresentFlag;
     1660#endif
    16581661#endif
    16591662
     
    17931796  Bool getSliceHeaderExtensionPresentFlag   ()                    { return m_sliceHeaderExtensionPresentFlag; }
    17941797  Void setSliceHeaderExtensionPresentFlag   (Bool val)            { m_sliceHeaderExtensionPresentFlag = val; }
     1798#if POC_RESET_IDC
     1799  Bool getPocResetInfoPresentFlag   ()                    { return m_pocResetInfoPresentFlag; }
     1800  Void setPocResetInfoPresentFlag   (const Bool val)      { m_pocResetInfoPresentFlag = val; }
     1801#endif
    17951802};
    17961803
  • branches/SHM-5.1-dev/source/Lib/TLibCommon/TypeDef.h

    r622 r623  
    8787#define VPS_NUH_LAYER_ID                 1      ///< JCTVC-N0085: Assert that the nuh_layer_id of VPS NAL unit should be 0
    8888#define POC_RESET_FLAG                   1      ///< JCTVC-N0244: POC reset flag for  layer pictures.
     89#define POC_RESET_IDC                    1      ///< JCTVC-P0041: Include poc_reset_idc and related derivation - eventually will replace POC_RESET_FLAG
    8990#define ALIGN_TSA_STSA_PICS              1      ///< JCTVC-N0084: Alignment of TSA and STSA pictures across AU.
    9091#define REPN_FORMAT_IN_VPS               1      ///< JCTVC-N0092: Signal represenation format (spatial resolution, bit depth, colour format) in the VPS
  • branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r622 r623  
    340340      READ_FLAG( ppsExtensionTypeFlag[i], "pps_extension_type_flag" );
    341341    }
     342#if !POC_RESET_IDC
    342343    if (ppsExtensionTypeFlag[1])
    343344    {
     345#else
     346    if( ppsExtensionTypeFlag[0] )
     347    {
     348      READ_FLAG( uiCode, "poc_reset_info_present_flag" );
     349      pcPPS->setPocResetInfoPresentFlag(uiCode ? true : false);
     350#endif
    344351    }
    345352    if (ppsExtensionTypeFlag[7])
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r622 r623  
    255255  if( 1 ) //pps_extension_flag
    256256  {
     257#if !POC_RESET_IDC
    257258    UInt ppsExtensionTypeFlag[8] = { 0, 1, 0, 0, 0, 0, 0, 0 };
     259#else
     260    UInt ppsExtensionTypeFlag[8] = { 1, 0, 0, 0, 0, 0, 0, 0 };
     261#endif
    258262    for (UInt i = 0; i < 8; i++)
    259263    {
    260264      WRITE_FLAG( ppsExtensionTypeFlag[i], "pps_extension_type_flag" );
    261265    }
     266#if !POC_RESET_IDC
     267    if( ppsExtensionTypeFlag[0] )
     268    {
     269#else
    262270    if( ppsExtensionTypeFlag[1] )
    263271    {
     272      WRITE_FLAG( pcPPS->getPocResetInfoPresentFlag() ? 1 : 0, "poc_reset_info_present_flag" );
     273#endif
    264274    }
    265275  }
Note: See TracChangeset for help on using the changeset viewer.