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/ratectl.cpp (1 of 20 files). Show all

Unified · Split

codec/encoder/core/src/ratectl.cpp+6−6
@@ -114,7 +114,7 @@ void RcInitSequenceParameter (sWelsEncCtx* pEncCtx) { · 113 unmodified lines
114114 fp_test_rc = fopen ("testRC.dat", "w");
115115 fp_vgop = fopen ("vgop.dat", "w");
116116 #endif
117− for (j = 0; j < pEncCtx->pSvcParam->iNumDependencyLayer; j++) {
117+ for (j = 0; j < pEncCtx->pSvcParam->iSpatialLayerNum; j++) {
118118 SSliceCtx* pSliceCtx = &pEncCtx->pSliceCtxList[j];
119119 pWelsSvcRc = &pEncCtx->pWelsSvcRc[j];
120120 pDLayerParam = &pEncCtx->pSvcParam->sDependencyLayers[j];
@@ -167,9 +167,9 @@ void RcInitSequenceParameter (sWelsEncCtx* pEncCtx) { · 46 unmodified lines
167167
168168 RcInitLayerMemory (pWelsSvcRc, pEncCtx->pMemAlign, 1 + pDLayerParam->iHighestTemporalId);
169169
170− bMultiSliceMode = ((SM_RASTER_SLICE == pDLayerParam->sMso.uiSliceMode) ||
171− (SM_ROWMB_SLICE == pDLayerParam->sMso.uiSliceMode) ||
172− (SM_DYN_SLICE == pDLayerParam->sMso.uiSliceMode));
170+ bMultiSliceMode = ((SM_RASTER_SLICE == pDLayerParam->sSliceCfg.uiSliceMode) ||
171+ (SM_ROWMB_SLICE == pDLayerParam->sSliceCfg.uiSliceMode) ||
172+ (SM_DYN_SLICE == pDLayerParam->sSliceCfg.uiSliceMode));
173173 if (bMultiSliceMode)
174174 pWelsSvcRc->iNumberMbGom = pWelsSvcRc->iNumberMbFrame;
175175 }
@@ -810,7 +810,7 @@ void WelsRcPictureInfoUpdateGom (void* pCtx, int32_t layer_size) { · 634 unmodified lines
810810
811811
812812 if (pEncCtx->pSvcParam->bEnableFrameSkip &&
813− pEncCtx->uiDependencyId == pEncCtx->pSvcParam->iNumDependencyLayer - 1) {
813+ pEncCtx->uiDependencyId == pEncCtx->pSvcParam->iSpatialLayerNum - 1) {
814814 RcVBufferCalculationSkip (pEncCtx);
815815 }
816816
@@ -939,7 +939,7 @@ void WelsRcFreeMemory (void* pCtx) { · 122 unmodified lines
939939 fclose (fp_vgop);
940940 fp_vgop = NULL;
941941 #endif
942− for (i = 0; i < pEncCtx->pSvcParam->iNumDependencyLayer; i++) {
942+ for (i = 0; i < pEncCtx->pSvcParam->iSpatialLayerNum; i++) {
943943 pWelsSvcRc = &pEncCtx->pWelsSvcRc[i];
944944 RcFreeLayerMemory (pWelsSvcRc, pEncCtx->pMemAlign);
945945 }

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