Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibEncoder/TEncGOP.h
- Timestamp:
- 12 Apr 2018, 11:12:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.2-dev/source/Lib/TLibEncoder/TEncGOP.h
r1405 r1412 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 6, ITU/ISO/IEC6 * Copyright (c) 2010-2017, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 55 55 #include "SEIwrite.h" 56 56 #include "SEIEncoder.h" 57 #if EXTENSION_360_VIDEO 58 #include "TAppEncHelper360/TExt360EncGop.h" 59 #endif 57 60 58 61 #include "TEncAnalyze.h" … … 93 96 94 97 TEncAnalyze m_gcAnalyzeAll_in; 98 99 #if EXTENSION_360_VIDEO 100 TExt360EncGop m_ext360; 101 public: 102 TExt360EncGop &getExt360Data() { return m_ext360; } 103 private: 104 #endif 105 95 106 // Data 96 107 Bool m_bLongtermTestPictureHasBeenCoded; … … 127 138 Int m_layerId; 128 139 Int m_viewId; 140 #endif 129 141 #if NH_3D 130 142 Int m_viewIndex; 131 143 Bool m_isDepth; 132 #endif 133 #endif 134 #if NH_3D_IC 144 135 145 Int* m_aICEnableCandidate; 136 146 Int* m_aICEnableNum; … … 153 163 Bool m_bufferingPeriodSEIPresentInAU; 154 164 SEIEncoder m_seiEncoder; 155 #if W0038_DB_OPT156 165 TComPicYuv* m_pcDeblockingTempPicYuv; 157 166 Int m_DBParam[MAX_ENCODER_DEBLOCKING_QUALITY_LAYERS][4]; //[layer_id][0: available; 1: bDBDisabled; 2: Beta Offset Div2; 3: Tc Offset Div2;] 158 #endif159 167 160 168 public: … … 168 176 #if NH_MV 169 177 Void initGOP ( Int iPOCLast, Int iNumPicRcvd, TComList<TComPic*>& rcListPic, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsInGOP); 170 Void 171 std::list<AccessUnit>& accessUnitsInGOP, Bool isField, Bool isTff, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, Int iGOPid );178 Void compressPicInGOP ( Int iPOCLast, Int iNumPicRcvd, TComList<TComPic*>& rcListPic, TComList<TComPicYuv*>& rcListPicYuvRec, 179 std::list<AccessUnit>& accessUnitsInGOP, Bool isField, Bool isTff, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, const Bool printMSSSIM, Int iGOPid ); 172 180 #else 173 181 Void compressGOP ( Int iPOCLast, Int iNumPicRcvd, TComList<TComPic*>& rcListPic, TComList<TComPicYuv*>& rcListPicYuvRec, 182 #if JVET_F0064_MSSSIM 183 std::list<AccessUnit>& accessUnitsInGOP, Bool isField, Bool isTff, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, const Bool printMSSSIM ); 184 #else 174 185 std::list<AccessUnit>& accessUnitsInGOP, Bool isField, Bool isTff, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE ); 186 #endif 175 187 #endif 176 188 Void xAttachSliceDataToNalUnit (OutputNALUnit& rNalu, TComOutputBitstream* pcBitstreamRedirect); … … 189 201 190 202 TComList<TComPic*>* getListPic() { return m_pcListPic; } 203 #if JVET_F0064_MSSSIM 204 Void printOutSummary ( UInt uiNumAllPicCoded, Bool isField, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const Bool printMSSSIM, const BitDepths &bitDepths ); 205 #else 206 191 207 Void printOutSummary ( UInt uiNumAllPicCoded, Bool isField, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths ); 208 #endif 192 209 #if NH_3D_VSO 193 210 Void preLoopFilterPicAll ( TComPic* pcPic, Dist64& ruiDist); … … 204 221 Void arrangeLongtermPicturesInRPS(TComSlice *, TComList<TComPic*>& ); 205 222 223 TEncAnalyze& getAnalyzeAllData() { return m_gcAnalyzeAll; } 224 TEncAnalyze& getAnalyzeIData() { return m_gcAnalyzeI; } 225 TEncAnalyze& getAnalyzePData() { return m_gcAnalyzeP; } 226 TEncAnalyze& getAnalyzeBData() { return m_gcAnalyzeB; } 227 206 228 protected: 207 229 TEncRateCtrl* getRateCtrl() { return m_pcRateCtrl; } … … 212 234 Void xGetBuffer ( TComList<TComPic*>& rcListPic, TComList<TComPicYuv*>& rcListPicYuvRecOut, Int iNumPicRcvd, Int iTimeOffset, TComPic*& rpcPic, TComPicYuv*& rpcPicYuvRecOut, Int pocCurr, Bool isField ); 213 235 214 Void xCalculateAddPSNRs ( const Bool isField, const Bool isFieldTopFieldFirst, const Int iGOPid, TComPic* pcPic, const AccessUnit&accessUnit, TComList<TComPic*> &rcListPic, Double dEncTime, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE ); 215 Void xCalculateAddPSNR ( TComPic* pcPic, TComPicYuv* pcPicD, const AccessUnit&, Double dEncTime, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE ); 236 #if JVET_F0064_MSSSIM 237 Void xCalculateAddPSNRs ( const Bool isField, const Bool isFieldTopFieldFirst, const Int iGOPid, TComPic* pcPic, const AccessUnit&accessUnit, TComList<TComPic*> &rcListPic, Double dEncTime, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, const Bool printMSSSIM, Double* PSNR_Y ); 238 Void xCalculateAddPSNR ( TComPic* pcPic, TComPicYuv* pcPicD, const AccessUnit&, Double dEncTime, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, const Bool printMSSSIM, Double* PSNR_Y ); 216 239 Void xCalculateInterlacedAddPSNR( TComPic* pcPicOrgFirstField, TComPic* pcPicOrgSecondField, 217 240 TComPicYuv* pcPicRecFirstField, TComPicYuv* pcPicRecSecondField, 218 const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE ); 241 const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, const Bool printMSSSIM, Double* PSNR_Y ); 242 Double xCalculateMSSSIM (const Pel *pOrg, const Int orgStride, const Pel* pRec, const Int recStride, const Int width, const Int height, const UInt bitDepth); 243 #else 244 Void xCalculateAddPSNRs ( const Bool isField, const Bool isFieldTopFieldFirst, const Int iGOPid, TComPic* pcPic, const AccessUnit&accessUnit, TComList<TComPic*> &rcListPic, Double dEncTime, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, Double* PSNR_Y ); 245 Void xCalculateAddPSNR ( TComPic* pcPic, TComPicYuv* pcPicD, const AccessUnit&, Double dEncTime, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, Double* PSNR_Y ); 246 Void xCalculateInterlacedAddPSNR( TComPic* pcPicOrgFirstField, TComPic* pcPicOrgSecondField, 247 TComPicYuv* pcPicRecFirstField, TComPicYuv* pcPicRecSecondField, 248 const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE, Double* PSNR_Y ); 249 #endif 250 219 251 #if NH_3D_VSO 220 252 Dist64 xFindDistortionFrame (TComPicYuv* pcPic0, TComPicYuv* pcPic1, const BitDepths &bitDepths); … … 245 277 Int xWriteSPS (AccessUnit &accessUnit, const TComSPS *sps); 246 278 Int xWritePPS (AccessUnit &accessUnit, const TComPPS *pps); 247 Int xWriteParameterSets (AccessUnit &accessUnit, TComSlice *slice); 279 #if NH_MV 280 Int xWriteParameterSets (AccessUnit &accessUnit, TComSlice *slice, const Bool bSeqFirst, const Bool bWriteVps ); 281 #else 282 Int xWriteParameterSets (AccessUnit &accessUnit, TComSlice *slice, const Bool bSeqFirst ); 283 #endif 248 284 249 285 #if NH_MV … … 253 289 254 290 Void applyDeblockingFilterMetric( TComPic* pcPic, UInt uiNumSlices ); 255 #if W0038_DB_OPT256 291 Void applyDeblockingFilterParameterSelection( TComPic* pcPic, const UInt numSlices, const Int gopID ); 257 #endif258 292 };// END CLASS DEFINITION TEncGOP 259 293
Note: See TracChangeset for help on using the changeset viewer.