Changeset 542 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibEncoder
- Timestamp:
- 10 Jan 2014, 01:26:16 (11 years ago)
- Location:
- branches/SHM-4.1-dev/source/Lib/TLibEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp ¶
r532 r542 669 669 UInt numBytesInVps = this->m_pcBitIf->getNumberOfWrittenBits(); 670 670 #endif 671 #if VPS_VUI_OFFSET 672 m_vpsVuiCounter = this->m_pcBitIf->getNumberOfWrittenBits(); 673 #endif 671 674 WRITE_CODE( pcVPS->getVPSId(), 4, "vps_video_parameter_set_id" ); 672 675 WRITE_CODE( 3, 2, "vps_reserved_three_2bits" ); … … 795 798 796 799 WRITE_FLAG( vps->getAvcBaseLayerFlag(), "avc_base_layer_flag" ); 800 #if VPS_VUI_OFFSET 801 WRITE_CODE( vps->getVpsVuiOffset( ), 16, "vps_vui_offset" ); 802 #endif 797 803 WRITE_FLAG( vps->getSplittingFlag(), "splitting_flag" ); 798 804 … … 1089 1095 WRITE_FLAG(1, "vps_vui_alignment_bit_equal_to_one"); 1090 1096 } 1097 #if VPS_VUI_OFFSET 1098 Int vpsVuiOffsetValeInBits = this->m_pcBitIf->getNumberOfWrittenBits() - m_vpsVuiCounter + 16; // 2 bytes for NUH 1099 assert( vpsVuiOffsetValeInBits % 8 == 0 ); 1100 vps->setVpsVuiOffset( vpsVuiOffsetValeInBits >> 3 ); 1101 #endif 1091 1102 codeVPSVUI(vps); 1092 1103 } -
TabularUnified branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.h ¶
r532 r542 68 68 TComSlice* m_pcSlice; 69 69 UInt m_uiCoeffCost; 70 70 #if VPS_VUI_OFFSET 71 Int m_vpsVuiCounter; 72 #endif 71 73 Void codeShortTermRefPicSet ( TComSPS* pcSPS, TComReferencePictureSet* pcRPS, Bool calledFromSliceHeader, Int idx ); 72 74 Bool findMatchingLTRP ( TComSlice* pcSlice, UInt *ltrpsIndex, Int ltrpPOC, Bool usedFlag ); -
TabularUnified branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp ¶
r539 r542 1753 1753 OutputNALUnit nalu(NAL_UNIT_VPS); 1754 1754 #endif 1755 #if VPS_VUI_OFFSET 1756 // The following code also calculates the VPS VUI offset 1757 #endif 1755 1758 #if VPS_EXTN_OFFSET_CALC 1756 1759 OutputNALUnit tempNalu(NAL_UNIT_VPS, 0, 0 ); // The value of nuh_layer_id of VPS NAL unit shall be equal to 0.
Note: See TracChangeset for help on using the changeset viewer.