Showing the changes to codec/encoder/core/src/svc_encode_slice.cpp (1 of 10 files). Show all
Unified · Split
| @@ -94,7 +94,7 @@ void WelsSliceHeaderExtInit (sWelsEncCtx* pEncCtx, SDqLayer* pCurLayer, SSlice* · 93 unmodified lines | ||
| 94 | 94 | |
| 95 | 95 | pCurSliceExt->bStoreRefBasePicFlag = false; |
| 96 | 96 | |
| 97 | − pCurSliceHeader->iFirstMbInSlice = WelsGetFirstMbOfSlice (pCurLayer->pSliceEncCtx, pSlice->uiSliceIdx); | |
| 97 | + pCurSliceHeader->iFirstMbInSlice = WelsGetFirstMbOfSlice (&pCurLayer->sSliceEncCtx, pSlice->uiSliceIdx); | |
| 98 | 98 | |
| 99 | 99 | pCurSliceHeader->iFrameNum = pEncCtx->iFrameNum; |
| 100 | 100 | pCurSliceHeader->uiIdrPicId = pEncCtx->uiIdrPicId; |
| @@ -483,7 +483,7 @@ void UpdateQpForOverflow (SMB* pCurMb, uint8_t kuiChromaQpIndexOffset) { · 382 unmodified lines | ||
| 483 | 483 | //second. lower than highest Dependency Layer, and for every Dependency Layer with one quality layer(single layer) |
| 484 | 484 | int32_t WelsISliceMdEnc (sWelsEncCtx* pEncCtx, SSlice* pSlice) { //pMd + encoding |
| 485 | 485 | SDqLayer* pCurLayer = pEncCtx->pCurDqLayer; |
| 486 | − SSliceCtx* pSliceCtx = pCurLayer->pSliceEncCtx; | |
| 486 | + SSliceCtx* pSliceCtx = &pCurLayer->sSliceEncCtx; | |
| 487 | 487 | SMbCache* pMbCache = &pSlice->sMbCacheInfo; |
| 488 | 488 | SSliceHeaderExt* pSliceHdExt = &pSlice->sSliceHeaderExt; |
| 489 | 489 | SMB* pMbList = pCurLayer->sMbDataP; |
| @@ -546,7 +546,7 @@ TRY_REENCODING: · 56 unmodified lines | ||
| 546 | 546 | int32_t WelsISliceMdEncDynamic (sWelsEncCtx* pEncCtx, SSlice* pSlice) { //pMd + encoding |
| 547 | 547 | SBitStringAux* pBs = pSlice->pSliceBsa; |
| 548 | 548 | SDqLayer* pCurLayer = pEncCtx->pCurDqLayer; |
| 549 | − SSliceCtx* pSliceCtx = pCurLayer->pSliceEncCtx; | |
| 549 | + SSliceCtx* pSliceCtx = &pCurLayer->sSliceEncCtx; | |
| 550 | 550 | SMbCache* pMbCache = &pSlice->sMbCacheInfo; |
| 551 | 551 | SSliceHeaderExt* pSliceHdExt = &pSlice->sSliceHeaderExt; |
| 552 | 552 | SMB* pMbList = pCurLayer->sMbDataP; |
| @@ -942,7 +942,7 @@ int32_t WelsMdInterMbLoop (sWelsEncCtx* pEncCtx, SSlice* pSlice, void* pWelsMd, · 389 unmodified lines | ||
| 942 | 942 | SWelsMD* pMd = (SWelsMD*)pWelsMd; |
| 943 | 943 | SBitStringAux* pBs = pSlice->pSliceBsa; |
| 944 | 944 | SDqLayer* pCurLayer = pEncCtx->pCurDqLayer; |
| 945 | − SSliceCtx* pSliceCtx = pCurLayer->pSliceEncCtx; | |
| 945 | + SSliceCtx* pSliceCtx = &pCurLayer->sSliceEncCtx; | |
| 946 | 946 | SMbCache* pMbCache = &pSlice->sMbCacheInfo; |
| 947 | 947 | SMB* pMbList = pCurLayer->sMbDataP; |
| 948 | 948 | SMB* pCurMb = NULL; |
| @@ -1033,7 +1033,7 @@ int32_t WelsMdInterMbLoopOverDynamicSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice, · 84 unmodified lines | ||
| 1033 | 1033 | SWelsMD* pMd = (SWelsMD*)pWelsMd; |
| 1034 | 1034 | SBitStringAux* pBs = pSlice->pSliceBsa; |
| 1035 | 1035 | SDqLayer* pCurLayer = pEncCtx->pCurDqLayer; |
| 1036 | − SSliceCtx* pSliceCtx = pCurLayer->pSliceEncCtx; | |
| 1036 | + SSliceCtx* pSliceCtx = &pCurLayer->sSliceEncCtx; | |
| 1037 | 1037 | SMbCache* pMbCache = &pSlice->sMbCacheInfo; |
| 1038 | 1038 | SMB* pMbList = pCurLayer->sMbDataP; |
| 1039 | 1039 | SMB* pCurMb = NULL; |