Changeset 1094 in SHVCSoftware for branches/SHM-dev


Ignore:
Timestamp:
2 Jul 2015, 21:13:04 (9 years ago)
Author:
seregin
Message:

cleanup macros: VPS_EXTN_OFFSET_CALC, VPS_EXTN_OFFSET, P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1090 r1094  
    18231823  vps->setHigherLayerIrapSkipFlag(m_skipPictureAtArcSwitch);
    18241824#endif
    1825 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    1826 #if !VPS_EXTN_OFFSET_CALC
    1827 #if VPS_EXTN_OFFSET
    1828   // to be updated according to the current semantics
    1829   vps->setExtensionOffset( 0xffff );
    1830 #endif
    1831 #endif
    1832 #endif
    18331825
    18341826#if P0300_ALT_OUTPUT_LAYER_FLAG
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1093 r1094  
    623623#endif
    624624#endif
    625 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    626 #if VPS_EXTN_OFFSET
    627   UInt        m_extensionOffset;
    628 #endif
    629 #endif
    630625  UInt        m_maxLayerId;
    631626  UInt        m_numLayerSets;
     
    13571352  Int    getNumViews();
    13581353  Int    scalTypeToScalIdx( ScalabilityType scalType );
    1359 #endif
    1360 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    1361 #if VPS_EXTN_OFFSET
    1362   Int    getExtensionOffset()                 { return m_extensionOffset;   }
    1363   Void   setExtensionOffset( UInt offset )    { m_extensionOffset = offset; }
    1364 #endif
    13651354#endif
    13661355#if VPS_DPB_SIZE_TABLE
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1093 r1094  
    182182#define P0182_VPS_VUI_PS_FLAG            1      ///< JCTVC-P0182, add base_layer_parameter_set_compatibility_flag
    183183
    184 #define P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED        1   ///< JCTVC-P0125 -- Keep it as a reserved FFFF value --- The following two macros (VPS_EXTN_OFFSET & VPS_EXTN_OFFSET_CALC) will have no effect when this macro is set to 1.
    185 #define VPS_EXTN_OFFSET                  1      ///< implementation of vps_extension_offset syntax element
    186 #define VPS_EXTN_OFFSET_CALC             1      ///< Calculation of VPS extension offset
    187184#define SPS_PTL_FIX                      1      ///< remove profile_tier_level from enhancement layer SPS
    188185
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1093 r1094  
    10221022  READ_FLAG(     uiCode,  "vps_temporal_id_nesting_flag" );       pcVPS->setTemporalNestingFlag( uiCode ? true:false );
    10231023  assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag());
    1024 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    1025 #if VPS_EXTN_OFFSET
    1026   READ_CODE( 16, uiCode,  "vps_extension_offset" );               pcVPS->setExtensionOffset( uiCode );
    1027 #else
    10281024  READ_CODE( 16, uiCode,  "vps_reserved_ffff_16bits" );           assert(uiCode == 0xffff);
    1029 #endif
    1030 #else
    1031   READ_CODE( 16, uiCode,  "vps_reserved_ffff_16bits" );           assert(uiCode == 0xffff);
    1032 #endif
    10331025  parsePTL ( pcVPS->getPTL(), true, pcVPS->getMaxTLayers()-1);
    10341026  UInt subLayerOrderingInfoPresentFlag;
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1093 r1094  
    781781Void TEncCavlc::codeVPS( TComVPS* pcVPS )
    782782{
    783 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    784 #if VPS_EXTN_OFFSET_CALC
    785   UInt numBytesInVps = this->m_pcBitIf->getNumberOfWrittenBits();
    786 #endif
    787 #endif
    788783#if !P0307_REMOVE_VPS_VUI_OFFSET
    789784#if VPS_VUI_OFFSET
     
    807802  WRITE_FLAG( pcVPS->getTemporalNestingFlag(),                "vps_temporal_id_nesting_flag" );
    808803  assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag());
    809 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    810 #if VPS_EXTN_OFFSET
    811   WRITE_CODE( pcVPS->getExtensionOffset(),         16,        "vps_extension_offset" );
    812 #else
    813804  WRITE_CODE( 0xffff,                              16,        "vps_reserved_ffff_16bits" );
    814 #endif
    815 #else
    816   WRITE_CODE( 0xffff,                              16,        "vps_reserved_ffff_16bits" );
    817 #endif
    818805  codePTL( pcVPS->getPTL(), true, pcVPS->getMaxTLayers() - 1 );
    819806  const Bool subLayerOrderingInfoPresentFlag = 1;
     
    918905      WRITE_FLAG(1,                  "vps_extension_alignment_bit_equal_to_one");
    919906    }
    920 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    921 #if VPS_EXTN_OFFSET_CALC
    922     Int vpsExntOffsetValueInBits = this->m_pcBitIf->getNumberOfWrittenBits() - numBytesInVps + 16; // 2 bytes for NUH
    923     assert( vpsExntOffsetValueInBits % 8 == 0 );
    924     pcVPS->setExtensionOffset( vpsExntOffsetValueInBits >> 3 );
    925 #endif
    926 #endif
    927907    codeVPSExtension(pcVPS);
    928908    WRITE_FLAG( 0,                     "vps_extension2_flag" );   // Flag value of 1 reserved
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1093 r1094  
    24032403      // The following code also calculates the VPS VUI offset
    24042404#endif
    2405 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    2406 #if VPS_EXTN_OFFSET_CALC
    2407       OutputNALUnit tempNalu(NAL_UNIT_VPS, 0, 0        ); // The value of nuh_layer_id of VPS NAL unit shall be equal to 0.
    2408       m_pcEntropyCoder->setBitstream(&tempNalu.m_Bitstream);
    2409       m_pcEntropyCoder->encodeVPS(m_pcEncTop->getVPS());  // Use to calculate the VPS extension offset
    2410 #endif
    2411 #endif
    24122405      m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
    24132406      m_pcEntropyCoder->encodeVPS(m_pcEncTop->getVPS());
Note: See TracChangeset for help on using the changeset viewer.