Changeset 568 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 27 Jan 2014, 20:37:31 (11 years ago)
- 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 637 637 Void TEncCavlc::codeVPS( TComVPS* pcVPS ) 638 638 { 639 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 639 640 #if VPS_EXTN_OFFSET_CALC 640 641 UInt numBytesInVps = this->m_pcBitIf->getNumberOfWrittenBits(); 642 #endif 641 643 #endif 642 644 #if !P0307_REMOVE_VPS_VUI_OFFSET … … 655 657 WRITE_FLAG( pcVPS->getTemporalNestingFlag(), "vps_temporal_id_nesting_flag" ); 656 658 assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag()); 659 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 657 660 #if VPS_EXTN_OFFSET 658 661 WRITE_CODE( pcVPS->getExtensionOffset(), 16, "vps_extension_offset" ); 662 #else 663 WRITE_CODE( 0xffff, 16, "vps_reserved_ffff_16bits" ); 664 #endif 659 665 #else 660 666 WRITE_CODE( 0xffff, 16, "vps_reserved_ffff_16bits" ); … … 748 754 WRITE_FLAG(1, "vps_extension_alignment_bit_equal_to_one"); 749 755 } 756 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 750 757 #if VPS_EXTN_OFFSET_CALC 751 758 Int vpsExntOffsetValueInBits = this->m_pcBitIf->getNumberOfWrittenBits() - numBytesInVps + 16; // 2 bytes for NUH 752 759 assert( vpsExntOffsetValueInBits % 8 == 0 ); 753 760 pcVPS->setExtensionOffset( vpsExntOffsetValueInBits >> 3 ); 761 #endif 754 762 #endif 755 763 codeVPSExtension(pcVPS); -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r567 r568 1697 1697 // The following code also calculates the VPS VUI offset 1698 1698 #endif 1699 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 1699 1700 #if VPS_EXTN_OFFSET_CALC 1700 1701 OutputNALUnit tempNalu(NAL_UNIT_VPS, 0, 0 ); // The value of nuh_layer_id of VPS NAL unit shall be equal to 0. 1701 1702 m_pcEntropyCoder->setBitstream(&tempNalu.m_Bitstream); 1702 1703 m_pcEntropyCoder->encodeVPS(m_pcEncTop->getVPS()); // Use to calculate the VPS extension offset 1704 #endif 1703 1705 #endif 1704 1706 m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
Note: See TracChangeset for help on using the changeset viewer.