Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 5 files). Show all
Unified · Split
| @@ -255,6 +255,8 @@ int32_t CWelsPreProcess::AnalyzeSpatialPic (sWelsEncCtx* pCtx, const int32_t kiD · 254 unmodified lines | |||
| 255 | 255 | ||
| 256 | int32_t CWelsPreProcess::UpdateSpatialPictures (sWelsEncCtx* pCtx, SWelsSvcCodingParam* pParam, | 256 | int32_t CWelsPreProcess::UpdateSpatialPictures (sWelsEncCtx* pCtx, SWelsSvcCodingParam* pParam, |
| 257 | const int8_t iCurTid, const int32_t d_idx) { | 257 | const int8_t iCurTid, const int32_t d_idx) { |
| 258 | if(pCtx->pSvcParam->iUsageType == SCREEN_CONTENT_REAL_TIME) | ||
| 259 | return 0; | ||
| 258 | if (iCurTid < m_uiSpatialLayersInTemporal[d_idx] - 1 || pParam->iDecompStages == 0) { | 260 | if (iCurTid < m_uiSpatialLayersInTemporal[d_idx] - 1 || pParam->iDecompStages == 0) { |
| 259 | if ((iCurTid >= MAX_TEMPORAL_LEVEL) || (m_uiSpatialLayersInTemporal[d_idx] - 1 > MAX_TEMPORAL_LEVEL)) { | 261 | if ((iCurTid >= MAX_TEMPORAL_LEVEL) || (m_uiSpatialLayersInTemporal[d_idx] - 1 > MAX_TEMPORAL_LEVEL)) { |
| 260 | InitLastSpatialPictures (pCtx); | 262 | InitLastSpatialPictures (pCtx); |