Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3857,7 +3857,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3856 unmodified lines | |||
| 3857 | while (iSpatialIdx < iSpatialNum) { | 3857 | while (iSpatialIdx < iSpatialNum) { |
| 3858 | const int32_t iDidIdx = (pSpatialIndexMap + iSpatialIdx)->iDid; // get iDid | 3858 | const int32_t iDidIdx = (pSpatialIndexMap + iSpatialIdx)->iDid; // get iDid |
| 3859 | SSpatialLayerConfig* pParam = &pSvcParam->sSpatialLayers[iDidIdx]; | 3859 | SSpatialLayerConfig* pParam = &pSvcParam->sSpatialLayers[iDidIdx]; |
| 3860 | 3860 | int32_t iDecompositionStages = pSvcParam->sDependencyLayers[iSpatialIdx].iDecompositionStages; | |
| 3861 | pCtx->uiDependencyId = iCurDid = (int8_t)iDidIdx; | 3861 | pCtx->uiDependencyId = iCurDid = (int8_t)iDidIdx; |
| 3862 | pCtx->pVpp->AnalyzeSpatialPic (pCtx, iDidIdx); | 3862 | pCtx->pVpp->AnalyzeSpatialPic (pCtx, iDidIdx); |
| 3863 | 3863 | ||
| @@ -3915,9 +3915,9 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 51 unmodified lines | |||
| 3915 | } | 3915 | } |
| 3916 | if (iCurTid == 0 || pCtx->eSliceType == I_SLICE) | 3916 | if (iCurTid == 0 || pCtx->eSliceType == I_SLICE) |
| 3917 | eNalRefIdc = NRI_PRI_HIGHEST; | 3917 | eNalRefIdc = NRI_PRI_HIGHEST; |
| 3918 | else if (iCurTid == pSvcParam->iDecompStages) | 3918 | else if (iCurTid == iDecompositionStages) |
| 3919 | eNalRefIdc = NRI_PRI_LOWEST; | 3919 | eNalRefIdc = NRI_PRI_LOWEST; |
| 3920 | else if (1 + iCurTid == pSvcParam->iDecompStages) | 3920 | else if (1 + iCurTid == iDecompositionStages) |
| 3921 | eNalRefIdc = NRI_PRI_LOW; | 3921 | eNalRefIdc = NRI_PRI_LOW; |
| 3922 | else // more details for other temporal layers? | 3922 | else // more details for other temporal layers? |
| 3923 | eNalRefIdc = NRI_PRI_HIGHEST; | 3923 | eNalRefIdc = NRI_PRI_HIGHEST; |