Changeset 568 in SHVCSoftware for branches/SHM-5.0-dev/source
- Timestamp:
- 27 Jan 2014, 20:37:31 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/App/TAppEncoder/TAppEncTop.cpp
r567 r568 1327 1327 vps->setHigherLayerIrapSkipFlag(m_skipPictureAtArcSwitch); 1328 1328 #endif 1329 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 1329 1330 #if !VPS_EXTN_OFFSET_CALC 1330 1331 #if VPS_EXTN_OFFSET 1331 1332 // to be updated according to the current semantics 1332 1333 vps->setExtensionOffset( 0xffff ); 1334 #endif 1333 1335 #endif 1334 1336 #endif -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h
r565 r568 483 483 Int m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1]; 484 484 #endif 485 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 485 486 #if VPS_EXTN_OFFSET 486 487 UInt m_extensionOffset; 488 #endif 487 489 #endif 488 490 #if VPS_RENAME … … 980 982 Int scalTypeToScalIdx( ScalabilityType scalType ); 981 983 #endif 984 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 982 985 #if VPS_EXTN_OFFSET 983 986 Int getExtensionOffset() { return m_extensionOffset; } 984 987 Void setExtensionOffset( UInt offset ) { m_extensionOffset = offset; } 988 #endif 985 989 #endif 986 990 #if O0215_PHASE_ALIGNMENT -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h
r567 r568 126 126 #endif 127 127 128 #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. 128 129 #define VPS_EXTN_OFFSET 1 ///< implementation of vps_extension_offset syntax element 129 130 #define VPS_EXTN_OFFSET_CALC 1 ///< Calculation of VPS extension offset -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r566 r568 847 847 READ_FLAG( uiCode, "vps_temporal_id_nesting_flag" ); pcVPS->setTemporalNestingFlag( uiCode ? true:false ); 848 848 assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag()); 849 #if !P0125_REVERT_VPS_EXTN_OFFSET_TO_RESERVED 849 850 #if VPS_EXTN_OFFSET 850 851 READ_CODE( 16, uiCode, "vps_extension_offset" ); pcVPS->setExtensionOffset( uiCode ); 852 #else 853 READ_CODE( 16, uiCode, "vps_reserved_ffff_16bits" ); assert(uiCode == 0xffff); 854 #endif 851 855 #else 852 856 READ_CODE( 16, uiCode, "vps_reserved_ffff_16bits" ); assert(uiCode == 0xffff); -
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.