History

encoder interface update step1

ruil2 committed 12 years ago

Commit 35fa4291 parent 3ff7e3d20 files · +598 −501Browse files

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

Unified · Split

codec/encoder/core/src/svc_encode_slice.cpp+7−5
@@ -631,8 +631,9 @@ void WelsPSliceMdEncDynamic (sWelsEncCtx* pEncCtx, SSlice* pSlice, const bool kb · 630 unmodified lines
631631 void WelsCodePSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) {
632632 //pSlice-level init should be outside and before this function
633633 SDqLayer* pCurLayer = pEncCtx->pCurDqLayer;
634+
634635 const bool kbBaseAvail = pCurLayer->bBaseLayerAvailableFlag;
635− const bool kbHighestSpatial = pEncCtx->pSvcParam->iNumDependencyLayer ==
636+ const bool kbHighestSpatial = pEncCtx->pSvcParam->iSpatialLayerNum ==
636637 (pCurLayer->sLayerInfo.sNalHeaderExt.uiDependencyId + 1);
637638
638639 //MD switch
@@ -649,8 +650,9 @@ void WelsCodePSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) { · 10 unmodified lines
649650 void WelsCodePOverDynamicSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) {
650651 //pSlice-level init should be outside and before this function
651652 SDqLayer* pCurLayer = pEncCtx->pCurDqLayer;
653+
652654 const bool kbBaseAvail = pCurLayer->bBaseLayerAvailableFlag;
653− const bool kbHighestSpatial = pEncCtx->pSvcParam->iNumDependencyLayer ==
655+ const bool kbHighestSpatial = pEncCtx->pSvcParam->iSpatialLayerNum ==
654656 (pCurLayer->sLayerInfo.sNalHeaderExt.uiDependencyId + 1);
655657
656658 //MD switch
@@ -681,7 +683,7 @@ void WelsCodeOneSlice (sWelsEncCtx* pEncCtx, const int32_t kiSliceIdx, const int · 24 unmodified lines
681683 SNalUnitHeaderExt* pNalHeadExt = &pCurLayer->sLayerInfo.sNalHeaderExt;
682684 SSlice* pCurSlice = &pCurLayer->sLayerInfo.pSliceInLayer[kiSliceIdx];
683685 SBitStringAux* pBs = pCurSlice->pSliceBsa;
684− const int32_t kiDynamicSliceFlag = (pEncCtx->pSvcParam->sDependencyLayers[pEncCtx->uiDependencyId].sMso.uiSliceMode ==
686+ const int32_t kiDynamicSliceFlag = (pEncCtx->pSvcParam->sDependencyLayers[pEncCtx->uiDependencyId].sSliceCfg.uiSliceMode ==
685687 SM_DYN_SLICE);
686688
687689 assert (kiSliceIdx == pCurSlice->uiSliceIdx);
@@ -916,7 +918,7 @@ void WelsMdInterMbLoop (sWelsEncCtx* pEncCtx, SSlice* pSlice, void* pWelsMd, con · 228 unmodified lines
916918 int32_t iCurMbIdx = -1;
917919 int32_t iMbSkipRun = 0;
918920 const int32_t kiTotalNumMb = pCurLayer->iMbWidth * pCurLayer->iMbHeight;
919− const int32_t kiMvdInterTableSize = (pEncCtx->pSvcParam->iNumDependencyLayer == 1 ? 648 : 972);
921+ const int32_t kiMvdInterTableSize = (pEncCtx->pSvcParam->iSpatialLayerNum == 1 ? 648 : 972);
920922 const int32_t kiMvdInterTableStride = 1 + (kiMvdInterTableSize << 1);
921923 uint16_t* pMvdCostTableInter = &pEncCtx->pMvdCostTableInter[kiMvdInterTableSize];
922924 const int32_t kiSliceIdx = pSlice->uiSliceIdx;
@@ -999,7 +1001,7 @@ void WelsMdInterMbLoopOverDynamicSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice, vo · 76 unmodified lines
9991001 int32_t iNextMbIdx = kiSliceFirstMbXY;
10001002 int32_t iCurMbIdx = -1;
10011003 int32_t iMbSkipRun = 0;
1002− const int32_t kiMvdInterTableSize = (pEncCtx->pSvcParam->iNumDependencyLayer == 1 ? 648 : 972);
1004+ const int32_t kiMvdInterTableSize = (pEncCtx->pSvcParam->iSpatialLayerNum == 1 ? 648 : 972);
10031005 const int32_t kiMvdInterTableStride = 1 + (kiMvdInterTableSize << 1);
10041006 uint16_t* pMvdCostTableInter = &pEncCtx->pMvdCostTableInter[kiMvdInterTableSize];
10051007 const int32_t kiSliceIdx = pSlice->uiSliceIdx;

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