Changeset 542 in SHVCSoftware for branches/SHM-4.1-dev/source
- Timestamp:
- 10 Jan 2014, 01:26:16 (11 years ago)
- Location:
- branches/SHM-4.1-dev/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibCommon/TComSlice.cpp
r533 r542 2049 2049 #if VIEW_ID_RELATED_SIGNALING 2050 2050 , m_viewIdLenMinus1 (0) 2051 #endif 2052 #if VPS_VUI_OFFSET 2053 , m_vpsVuiOffset (0) 2051 2054 #endif 2052 2055 { -
branches/SHM-4.1-dev/source/Lib/TLibCommon/TComSlice.h
r535 r542 643 643 #endif 644 644 #endif //SVC_EXTENSION 645 #if VPS_VUI_OFFSET 646 Int m_vpsVuiOffset; 647 #endif 645 648 public: 646 649 TComVPS(); … … 985 988 Int getNumSubDpbs(Int i) { return m_numSubDpbs[i]; } 986 989 Void setNumSubDpbs(Int i, Int x) { m_numSubDpbs[i] = x; } 990 #endif 991 #if VPS_VUI_OFFSET 992 Int getVpsVuiOffset() { return m_vpsVuiOffset; } 993 Void setVpsVuiOffset(Int x) { m_vpsVuiOffset = x; } 987 994 #endif 988 995 #endif //SVC_EXTENSION -
branches/SHM-4.1-dev/source/Lib/TLibCommon/TypeDef.h
r532 r542 42 42 43 43 #define SYNTAX_BYTES 10 ///< number of bytes taken by syntaxes per 4x4 block [RefIdxL0(1byte), RefIdxL1(1byte), MVxL0(2bytes), MVyL0(2bytes), MVxL1(2bytes), MVyL1(2bytes)] 44 45 #define VPS_VUI_OFFSET 1 ///< N0085: Signal VPS VUI offset in the VPS extension 44 46 45 47 #define RANDOM_ACCESS_SEI_FIX 1 -
branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r532 r542 990 990 991 991 READ_FLAG( uiCode, "avc_base_layer_flag" ); vps->setAvcBaseLayerFlag(uiCode ? true : false); 992 #if VPS_VUI_OFFSET 993 READ_CODE( 16, uiCode, "vps_vui_offset" ); vps->setVpsVuiOffset( uiCode ); 994 #endif 992 995 READ_FLAG( uiCode, "splitting_flag" ); vps->setSplittingFlag(uiCode ? true : false); 993 996 -
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 } -
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 ); -
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.