Changeset 568 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
27 Jan 2014, 20:37:31 (11 years ago)
Author:
qualcomm
Message:

JCTVC-P0125 -- Revert vps_extension_offset back to vps_reserved_0xffff_16bits

One macro (P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED) is defined and it negate the following two macros (VPS_EXTN_OFFSET & VPS_EXTN_OFFSET_CALC).

Contact fhendry@…

Location:
branches/SHM-5.0-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r566 r568  
    637637Void TEncCavlc::codeVPS( TComVPS* pcVPS )
    638638{
     639#if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    639640#if VPS_EXTN_OFFSET_CALC
    640641  UInt numBytesInVps = this->m_pcBitIf->getNumberOfWrittenBits();
     642#endif
    641643#endif
    642644#if !P0307_REMOVE_VPS_VUI_OFFSET
     
    655657  WRITE_FLAG( pcVPS->getTemporalNestingFlag(),                "vps_temporal_id_nesting_flag" );
    656658  assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag());
     659#if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    657660#if VPS_EXTN_OFFSET
    658661  WRITE_CODE( pcVPS->getExtensionOffset(),         16,        "vps_extension_offset" );
     662#else
     663  WRITE_CODE( 0xffff,                              16,        "vps_reserved_ffff_16bits" );
     664#endif
    659665#else
    660666  WRITE_CODE( 0xffff,                              16,        "vps_reserved_ffff_16bits" );
     
    748754      WRITE_FLAG(1,                  "vps_extension_alignment_bit_equal_to_one");
    749755    }
     756#if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    750757#if VPS_EXTN_OFFSET_CALC
    751758    Int vpsExntOffsetValueInBits = this->m_pcBitIf->getNumberOfWrittenBits() - numBytesInVps + 16; // 2 bytes for NUH
    752759    assert( vpsExntOffsetValueInBits % 8 == 0 );
    753760    pcVPS->setExtensionOffset( vpsExntOffsetValueInBits >> 3 );
     761#endif
    754762#endif
    755763    codeVPSExtension(pcVPS);
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r567 r568  
    16971697      // The following code also calculates the VPS VUI offset
    16981698#endif
     1699#if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED
    16991700#if VPS_EXTN_OFFSET_CALC
    17001701      OutputNALUnit tempNalu(NAL_UNIT_VPS, 0, 0        ); // The value of nuh_layer_id of VPS NAL unit shall be equal to 0.
    17011702      m_pcEntropyCoder->setBitstream(&tempNalu.m_Bitstream);
    17021703      m_pcEntropyCoder->encodeVPS(m_pcEncTop->getVPS());  // Use to calculate the VPS extension offset
     1704#endif
    17031705#endif
    17041706      m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
Note: See TracChangeset for help on using the changeset viewer.