Changeset 1292 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 18 Jul 2015, 04:14:13 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.cpp
r1259 r1292 45 45 ////////////////////////////////////////////////////////////////////// 46 46 47 #if SVC_EXTENSION48 TEncAnalyze m_gcAnalyzeAll [MAX_LAYERS];49 TEncAnalyze m_gcAnalyzeI [MAX_LAYERS];50 TEncAnalyze m_gcAnalyzeP [MAX_LAYERS];51 TEncAnalyze m_gcAnalyzeB [MAX_LAYERS];52 #else53 TEncAnalyze m_gcAnalyzeAll;54 TEncAnalyze m_gcAnalyzeI;55 TEncAnalyze m_gcAnalyzeP;56 TEncAnalyze m_gcAnalyzeB;57 #endif58 59 TEncAnalyze m_gcAnalyzeAll_in;60 47 61 48 //! \} -
branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.h
r1287 r1292 137 137 138 138 #if SVC_EXTENSION 139 Void printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layer )139 Void printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layer = 0 ) 140 140 #else 141 141 Void printOut ( Char cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths ) … … 451 451 }; 452 452 453 #if SVC_EXTENSION454 extern TEncAnalyze m_gcAnalyzeAll [MAX_LAYERS];455 extern TEncAnalyze m_gcAnalyzeI [MAX_LAYERS];456 extern TEncAnalyze m_gcAnalyzeP [MAX_LAYERS];457 extern TEncAnalyze m_gcAnalyzeB [MAX_LAYERS];458 #else459 453 extern TEncAnalyze m_gcAnalyzeAll; 460 454 extern TEncAnalyze m_gcAnalyzeI; 461 455 extern TEncAnalyze m_gcAnalyzeP; 462 456 extern TEncAnalyze m_gcAnalyzeB; 463 #endif464 457 465 458 extern TEncAnalyze m_gcAnalyzeAll_in; -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1291 r1292 2918 2918 } 2919 2919 2920 #if !SVC_EXTENSION2921 2920 Void TEncGOP::printOutSummary(UInt uiNumAllPicCoded, Bool isField, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths) 2922 2921 { … … 2971 2970 printf("\nRVM: %.3lf\n" , xCalculateRVM()); 2972 2971 } 2973 #endif2974 2972 2975 2973 Void TEncGOP::preLoopFilterPicAll( TComPic* pcPic, UInt64& ruiDist ) … … 3267 3265 3268 3266 //===== add PSNR ===== 3269 #if SVC_EXTENSION3270 m_gcAnalyzeAll[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);3271 TComSlice* pcSlice = pcPic->getSlice(0);3272 if (pcSlice->isIntra())3273 {3274 m_gcAnalyzeI[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);3275 }3276 if (pcSlice->isInterP())3277 {3278 m_gcAnalyzeP[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);3279 }3280 if (pcSlice->isInterB())3281 {3282 m_gcAnalyzeB[pcPic->getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId)].addResult (dPSNR, (Double)uibits, MSEyuvframe);3283 }3284 #else3285 3267 m_gcAnalyzeAll.addResult (dPSNR, (Double)uibits, MSEyuvframe); 3286 3268 TComSlice* pcSlice = pcPic->getSlice(0); … … 3297 3279 m_gcAnalyzeB.addResult (dPSNR, (Double)uibits, MSEyuvframe); 3298 3280 } 3299 #endif3300 3281 3301 3282 Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B'); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h
r1291 r1292 86 86 87 87 private: 88 89 TEncAnalyze m_gcAnalyzeAll; 90 TEncAnalyze m_gcAnalyzeI; 91 TEncAnalyze m_gcAnalyzeP; 92 TEncAnalyze m_gcAnalyzeB; 93 94 TEncAnalyze m_gcAnalyzeAll_in; 88 95 // Data 89 96 Bool m_bLongtermTestPictureHasBeenCoded; … … 193 200 TComList<TComPic*>* getListPic() { return m_pcListPic; } 194 201 195 #if !SVC_EXTENSION196 202 Void printOutSummary ( UInt uiNumAllPicCoded, Bool isField, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths ); 197 #endif198 203 Void preLoopFilterPicAll ( TComPic* pcPic, UInt64& ruiDist ); 199 204 … … 204 209 #if SVC_EXTENSION 205 210 Void determinePocResetIdc( Int const pocCurr, TComSlice *const slice); 206 Int getIntraRefreshInterval() { return m_pcCfg->getIntraPeriod(); }207 Int getIntraRefreshType() { return m_pcCfg->getDecodingRefreshType(); }208 Int getLastPocPeriodId() { return m_lastPocPeriodId; }209 Void setLastPocPeriodId(Int x) { m_lastPocPeriodId = x; }211 Int getIntraRefreshInterval() { return m_pcCfg->getIntraPeriod(); } 212 Int getIntraRefreshType() { return m_pcCfg->getDecodingRefreshType(); } 213 Int getLastPocPeriodId() { return m_lastPocPeriodId; } 214 Void setLastPocPeriodId(Int x) { m_lastPocPeriodId = x; } 210 215 Void updatePocValuesOfPics( Int const pocCurr, TComSlice *const slice); 216 217 TEncAnalyze* getAnalyzeAll() { return &m_gcAnalyzeAll; } 218 TEncAnalyze* getAnalyzeI() { return &m_gcAnalyzeI; } 219 TEncAnalyze* getAnalyzeP() { return &m_gcAnalyzeP; } 220 TEncAnalyze* getAnalyzeB() { return &m_gcAnalyzeB; } 221 TEncAnalyze* getAnalyzeAllin() { return &m_gcAnalyzeAll_in; } 222 Double calculateRVM() { return xCalculateRVM(); } 211 223 #endif 212 224 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h
r1287 r1292 263 263 Void setCurrPocMsb(Int poc) { m_currPocMsb = poc; } 264 264 Int getCurrPocMsb() { return m_currPocMsb; } 265 266 TEncAnalyze* getAnalyzeAll() { return m_cGOPEncoder.getAnalyzeAll(); } 267 TEncAnalyze* getAnalyzeI() { return m_cGOPEncoder.getAnalyzeI(); } 268 TEncAnalyze* getAnalyzeP() { return m_cGOPEncoder.getAnalyzeP(); } 269 TEncAnalyze* getAnalyzeB() { return m_cGOPEncoder.getAnalyzeB(); } 270 TEncAnalyze* getAnalyzeAllin() { return m_cGOPEncoder.getAnalyzeAllin(); } 271 Double calculateRVM() { return m_cGOPEncoder.calculateRVM(); } 265 272 #else //SVC_EXTENSION 266 273 Void encode( Bool bEos, … … 275 282 TComList<TComPicYuv*>& rcListPicYuvRecOut, 276 283 std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded, Bool isTff); 284 #endif //#if SVC_EXTENSION 277 285 278 286 Void printSummary(Bool isField) { m_cGOPEncoder.printOutSummary (m_uiNumAllPicCoded, isField, m_printMSEBasedSequencePSNR, m_printSequenceMSE, m_cSPS.getBitDepths()); } 279 #endif //#if SVC_EXTENSION280 287 }; 281 288
Note: See TracChangeset for help on using the changeset viewer.