History

using independent encoder control logic for SAVC case

Karina committed 10 years ago

Commit 0f0d54e1 parent 7bfb96b13 files · +406 −314Browse files

Showing the changes to codec/encoder/core/src/svc_encode_slice.cpp (1 of 13 files). Show all

Unified · Split

codec/encoder/core/src/svc_encode_slice.cpp+2−2
@@ -89,14 +89,14 @@ void WelsSliceHeaderScalExtInit (SDqLayer* pCurLayer, SSlice* pSlice) { · 88 unmodified lines
8989 void WelsSliceHeaderExtInit (sWelsEncCtx* pEncCtx, SDqLayer* pCurLayer, SSlice* pSlice) {
9090 SSliceHeaderExt* pCurSliceExt = &pSlice->sSliceHeaderExt;
9191 SSliceHeader* pCurSliceHeader = &pCurSliceExt->sSliceHeader;
92−
92+ SSpatialLayerInternal *pParamInternal = &pEncCtx->pSvcParam->sDependencyLayers[pEncCtx->uiDependencyId];
9393 pCurSliceHeader->eSliceType = pEncCtx->eSliceType;
9494
9595 pCurSliceExt->bStoreRefBasePicFlag = false;
9696
9797 pCurSliceHeader->iFirstMbInSlice = WelsGetFirstMbOfSlice (pCurLayer->sLayerInfo.pSliceInLayer, pSlice->uiSliceIdx);
9898
99− pCurSliceHeader->iFrameNum = pEncCtx->iFrameNum;
99+ pCurSliceHeader->iFrameNum = pParamInternal->iFrameNum;
100100 pCurSliceHeader->uiIdrPicId = pEncCtx->uiIdrPicId;
101101
102102 pCurSliceHeader->iPicOrderCntLsb = pEncCtx->pEncPic->iFramePoc; // 0

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