Changeset 1094 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 2 Jul 2015, 21:13:04 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1090 r1094 1823 1823 vps->setHigherLayerIrapSkipFlag(m_skipPictureAtArcSwitch); 1824 1824 #endif 1825 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED1826 #if !VPS_EXTN_OFFSET_CALC1827 #if VPS_EXTN_OFFSET1828 // to be updated according to the current semantics1829 vps->setExtensionOffset( 0xffff );1830 #endif1831 #endif1832 #endif1833 1825 1834 1826 #if P0300_ALT_OUTPUT_LAYER_FLAG -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1093 r1094 623 623 #endif 624 624 #endif 625 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED626 #if VPS_EXTN_OFFSET627 UInt m_extensionOffset;628 #endif629 #endif630 625 UInt m_maxLayerId; 631 626 UInt m_numLayerSets; … … 1357 1352 Int getNumViews(); 1358 1353 Int scalTypeToScalIdx( ScalabilityType scalType ); 1359 #endif1360 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED1361 #if VPS_EXTN_OFFSET1362 Int getExtensionOffset() { return m_extensionOffset; }1363 Void setExtensionOffset( UInt offset ) { m_extensionOffset = offset; }1364 #endif1365 1354 #endif 1366 1355 #if VPS_DPB_SIZE_TABLE -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1093 r1094 182 182 #define P0182_VPS_VUI_PS_FLAG 1 ///< JCTVC-P0182, add base_layer_parameter_set_compatibility_flag 183 183 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 element186 #define VPS_EXTN_OFFSET_CALC 1 ///< Calculation of VPS extension offset187 184 #define SPS_PTL_FIX 1 ///< remove profile_tier_level from enhancement layer SPS 188 185 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1093 r1094 1022 1022 READ_FLAG( uiCode, "vps_temporal_id_nesting_flag" ); pcVPS->setTemporalNestingFlag( uiCode ? true:false ); 1023 1023 assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag()); 1024 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED1025 #if VPS_EXTN_OFFSET1026 READ_CODE( 16, uiCode, "vps_extension_offset" ); pcVPS->setExtensionOffset( uiCode );1027 #else1028 1024 READ_CODE( 16, uiCode, "vps_reserved_ffff_16bits" ); assert(uiCode == 0xffff); 1029 #endif1030 #else1031 READ_CODE( 16, uiCode, "vps_reserved_ffff_16bits" ); assert(uiCode == 0xffff);1032 #endif1033 1025 parsePTL ( pcVPS->getPTL(), true, pcVPS->getMaxTLayers()-1); 1034 1026 UInt subLayerOrderingInfoPresentFlag; -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1093 r1094 781 781 Void TEncCavlc::codeVPS( TComVPS* pcVPS ) 782 782 { 783 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED784 #if VPS_EXTN_OFFSET_CALC785 UInt numBytesInVps = this->m_pcBitIf->getNumberOfWrittenBits();786 #endif787 #endif788 783 #if !P0307_REMOVE_VPS_VUI_OFFSET 789 784 #if VPS_VUI_OFFSET … … 807 802 WRITE_FLAG( pcVPS->getTemporalNestingFlag(), "vps_temporal_id_nesting_flag" ); 808 803 assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag()); 809 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED810 #if VPS_EXTN_OFFSET811 WRITE_CODE( pcVPS->getExtensionOffset(), 16, "vps_extension_offset" );812 #else813 804 WRITE_CODE( 0xffff, 16, "vps_reserved_ffff_16bits" ); 814 #endif815 #else816 WRITE_CODE( 0xffff, 16, "vps_reserved_ffff_16bits" );817 #endif818 805 codePTL( pcVPS->getPTL(), true, pcVPS->getMaxTLayers() - 1 ); 819 806 const Bool subLayerOrderingInfoPresentFlag = 1; … … 918 905 WRITE_FLAG(1, "vps_extension_alignment_bit_equal_to_one"); 919 906 } 920 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED921 #if VPS_EXTN_OFFSET_CALC922 Int vpsExntOffsetValueInBits = this->m_pcBitIf->getNumberOfWrittenBits() - numBytesInVps + 16; // 2 bytes for NUH923 assert( vpsExntOffsetValueInBits % 8 == 0 );924 pcVPS->setExtensionOffset( vpsExntOffsetValueInBits >> 3 );925 #endif926 #endif927 907 codeVPSExtension(pcVPS); 928 908 WRITE_FLAG( 0, "vps_extension2_flag" ); // Flag value of 1 reserved -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1093 r1094 2403 2403 // The following code also calculates the VPS VUI offset 2404 2404 #endif 2405 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED2406 #if VPS_EXTN_OFFSET_CALC2407 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 offset2410 #endif2411 #endif2412 2405 m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream); 2413 2406 m_pcEntropyCoder->encodeVPS(m_pcEncTop->getVPS());
Note: See TracChangeset for help on using the changeset viewer.