History

use individual iDecompositionStages for each spatial layer

karina li committed 11 years ago

Commit 8c7ef9c1 parent 2b597461 file · +3 −3Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+3−3
@@ -3857,7 +3857,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3856 unmodified lines
38573857 while (iSpatialIdx < iSpatialNum) {
38583858 const int32_t iDidIdx = (pSpatialIndexMap + iSpatialIdx)->iDid; // get iDid
38593859 SSpatialLayerConfig* pParam = &pSvcParam->sSpatialLayers[iDidIdx];
3860−
3860+ int32_t iDecompositionStages = pSvcParam->sDependencyLayers[iSpatialIdx].iDecompositionStages;
38613861 pCtx->uiDependencyId = iCurDid = (int8_t)iDidIdx;
38623862 pCtx->pVpp->AnalyzeSpatialPic (pCtx, iDidIdx);
38633863
@@ -3915,9 +3915,9 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 51 unmodified lines
39153915 }
39163916 if (iCurTid == 0 || pCtx->eSliceType == I_SLICE)
39173917 eNalRefIdc = NRI_PRI_HIGHEST;
3918− else if (iCurTid == pSvcParam->iDecompStages)
3918+ else if (iCurTid == iDecompositionStages)
39193919 eNalRefIdc = NRI_PRI_LOWEST;
3920− else if (1 + iCurTid == pSvcParam->iDecompStages)
3920+ else if (1 + iCurTid == iDecompositionStages)
39213921 eNalRefIdc = NRI_PRI_LOW;
39223922 else // more details for other temporal layers?
39233923 eNalRefIdc = NRI_PRI_HIGHEST;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t