Changeset 125 in SHVCSoftware for trunk/source/Lib/TLibEncoder/TEncGOP.h
- Timestamp:
- 16 Apr 2013, 06:39:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibEncoder/TEncGOP.h
r2 r125 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 2, ITU/ISO/IEC6 * Copyright (c) 2010-2013, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 48 48 #include "TLibCommon/TComLoopFilter.h" 49 49 #include "TLibCommon/AccessUnit.h" 50 #include "TEncAdaptiveLoopFilter.h"51 50 #include "TEncSampleAdaptiveOffset.h" 52 51 #include "TEncSlice.h" … … 76 75 Bool m_bLongtermTestPictureHasBeenCoded; 77 76 Bool m_bLongtermTestPictureHasBeenCoded2; 78 #if LTRP_IN_SPS79 77 UInt m_numLongTermRefPicSPS; 80 78 UInt m_ltRefPicPocLsbSps[33]; 81 79 Bool m_ltRefPicUsedByCurrPicFlag[33]; 82 #endif83 80 Int m_iLastIDR; 84 81 Int m_iGopSize; … … 95 92 TEncSlice* m_pcSliceEncoder; 96 93 TComList<TComPic*>* m_pcListPic; 97 94 98 95 #if SVC_EXTENSION 99 96 TEncTop** m_ppcTEncTop; … … 111 108 SEIWriter m_seiWriter; 112 109 113 #if !REMOVE_ALF114 // Adaptive Loop filter115 TEncAdaptiveLoopFilter* m_pcAdaptiveLoopFilter;116 #endif117 110 //--Adaptive Loop filter 118 111 TEncSampleAdaptiveOffset* m_pcSAO; … … 126 119 Int m_pocCRA; 127 120 std::vector<Int> m_storedStartCUAddrForEncodingSlice; 128 std::vector<Int> m_storedStartCUAddrForEncoding DependentSlice;121 std::vector<Int> m_storedStartCUAddrForEncodingSliceSegment; 129 122 130 123 std::vector<Int> m_vRVM_RP; 131 #if BUFFERING_PERIOD_AND_TIMING_SEI132 124 UInt m_lastBPSEI; 133 125 UInt m_totalCoded; 134 126 UInt m_cpbRemovalDelay; 127 UInt m_tl0Idx; 128 UInt m_rapIdx; 129 #if L0045_NON_NESTED_SEI_RESTRICTIONS 130 Bool m_activeParameterSetSEIPresentInAU; 131 Bool m_bufferingPeriodSEIPresentInAU; 132 Bool m_pictureTimingSEIPresentInAU; 135 133 #endif 136 134 public: … … 139 137 140 138 #if SVC_EXTENSION 141 Void create ( Int iWidth, Int iHeight, UInt iMaxCUWidth, UInt iMaxCUHeight,UInt layerId );139 Void create ( UInt layerId ); 142 140 #else 143 Void create ( Int iWidth, Int iHeight, UInt iMaxCUWidth, UInt iMaxCUHeight);141 Void create (); 144 142 #endif 145 143 Void destroy (); … … 162 160 163 161 TEncSlice* getSliceEncoder() { return m_pcSliceEncoder; } 164 NalUnitType getNalUnitType( UInt uiPOCCurr ); 165 #if !REMOVE_APS 166 Void freeAPS (TComAPS* pAPS, TComSPS* pSPS); 167 Void allocAPS (TComAPS* pAPS, TComSPS* pSPS); 168 #endif 162 NalUnitType getNalUnitType( Int pocCurr ); 169 163 Void arrangeLongtermPicturesInRPS(TComSlice *, TComList<TComPic*>& ); 170 164 protected: 171 #if !REMOVE_APS172 Void encodeAPS (TComAPS* pcAPS, TComOutputBitstream& APSbs, TComSlice* pcSlice); //!< encode APS syntax elements173 Void assignNewAPS(TComAPS& cAPS, Int apsID, std::vector<TComAPS>& vAPS, TComSlice* pcSlice); //!< Assign APS object into APS container174 #endif175 165 TEncRateCtrl* getRateCtrl() { return m_pcRateCtrl; } 176 166 177 167 protected: 178 168 Void xInitGOP ( Int iPOC, Int iNumPicRcvd, TComList<TComPic*>& rcListPic, TComList<TComPicYuv*>& rcListPicYuvRecOut ); 179 Void xGetBuffer ( TComList<TComPic*>& rcListPic, TComList<TComPicYuv*>& rcListPicYuvRecOut, Int iNumPicRcvd, Int iTimeOffset, TComPic*& rpcPic, TComPicYuv*& rpcPicYuvRecOut, UInt uiPOCCurr );169 Void xGetBuffer ( TComList<TComPic*>& rcListPic, TComList<TComPicYuv*>& rcListPicYuvRecOut, Int iNumPicRcvd, Int iTimeOffset, TComPic*& rpcPic, TComPicYuv*& rpcPicYuvRecOut, Int pocCurr ); 180 170 181 171 Void xCalculateAddPSNR ( TComPic* pcPic, TComPicYuv* pcPicD, const AccessUnit&, Double dEncTime ); … … 184 174 185 175 Double xCalculateRVM(); 176 177 SEIActiveParameterSets* xCreateSEIActiveParameterSets (TComSPS *sps); 178 SEIFramePacking* xCreateSEIFramePacking(); 179 SEIDisplayOrientation* xCreateSEIDisplayOrientation(); 180 181 Void xCreateLeadingSEIMessages (/*SEIMessages seiMessages,*/ AccessUnit &accessUnit, TComSPS *sps); 182 #if L0045_NON_NESTED_SEI_RESTRICTIONS 183 Int xGetFirstSeiLocation (AccessUnit &accessUnit); 184 Void xResetNonNestedSEIPresentFlags() 185 { 186 m_activeParameterSetSEIPresentInAU = false; 187 m_bufferingPeriodSEIPresentInAU = false; 188 m_pictureTimingSEIPresentInAU = false; 189 } 190 #endif 186 191 };// END CLASS DEFINITION TEncGOP 187 192 … … 192 197 { 193 198 EXECUTE_INLOOPFILTER, 194 ENCODE_APS,195 199 ENCODE_SLICE 196 200 };
Note: See TracChangeset for help on using the changeset viewer.