Make the function signatures actually match when used as function pointer
Hiding the function signature mismatch with a cast can lead to more concrete breakage being missed.
This commit is contained in:
parent
d1341554dd
commit
44dfad2217
@ -69,7 +69,7 @@ int32_t WelsMdP8x8 (SWelsFuncPtrList* pFunc, SDqLayer* pCurDqLayer, SWelsMD* pWe
|
||||
void WelsMdInterMbRefinement (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SMB* pCurMb, SMbCache* pMbCache);
|
||||
BOOL_T WelsMdFirstIntraMode (void* pEnc, void* pMd, SMB* pCurMb, SMbCache* pMbCache);
|
||||
//BOOL_T svc_md_first_intra_mode_constrained(void* pEnc, void* pMd, SMB* pCurMb, SMbCache *pMbCache);
|
||||
void WelsMdInterMb (void* pEncCtx, void* pWelsMd, SSlice* pSlice, SMB* pCurMb);
|
||||
void WelsMdInterMb (void* pEncCtx, void* pWelsMd, SSlice* pSlice, SMB* pCurMb, SMbCache* pUnused);
|
||||
|
||||
//both used in BL and EL
|
||||
//void wels_md_inter_init ( SWelsMD* pMd, const uint8_t ref_idx, const bool_t is_highest_dlayer_flag );
|
||||
|
@ -1628,7 +1628,7 @@ BOOL_T WelsMdFirstIntraMode (void* pEnc, void* pMd, SMB* pCurMb, SMbCache* pMbCa
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void WelsMdInterMb (void* pEnc, void* pMd, SSlice* pSlice, SMB* pCurMb) {
|
||||
void WelsMdInterMb (void* pEnc, void* pMd, SSlice* pSlice, SMB* pCurMb, SMbCache* pUnused) {
|
||||
sWelsEncCtx* pEncCtx = (sWelsEncCtx*)pEnc;
|
||||
SWelsMD* pWelsMd = (SWelsMD*)pMd;
|
||||
SDqLayer* pCurDqLayer = pEncCtx->pCurDqLayer;
|
||||
|
@ -647,10 +647,10 @@ void WelsCodePSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) {
|
||||
//MD switch
|
||||
if (kbBaseAvail && kbHighestSpatial) {
|
||||
//initial pMd pointer
|
||||
pEncCtx->pFuncList->pfInterMd = (PInterMdFunc)WelsMdInterMbEnhancelayer;
|
||||
pEncCtx->pFuncList->pfInterMd = WelsMdInterMbEnhancelayer;
|
||||
} else {
|
||||
//initial pMd pointer
|
||||
pEncCtx->pFuncList->pfInterMd = (PInterMdFunc)WelsMdInterMb;
|
||||
pEncCtx->pFuncList->pfInterMd = WelsMdInterMb;
|
||||
}
|
||||
WelsPSliceMdEnc (pEncCtx, pSlice, kbHighestSpatial);
|
||||
}
|
||||
@ -665,10 +665,10 @@ void WelsCodePOverDynamicSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) {
|
||||
//MD switch
|
||||
if (kbBaseAvail && kbHighestSpatial) {
|
||||
//initial pMd pointer
|
||||
pEncCtx->pFuncList->pfInterMd = (PInterMdFunc)WelsMdInterMbEnhancelayer;
|
||||
pEncCtx->pFuncList->pfInterMd = WelsMdInterMbEnhancelayer;
|
||||
} else {
|
||||
//initial pMd pointer
|
||||
pEncCtx->pFuncList->pfInterMd = (PInterMdFunc)WelsMdInterMb;
|
||||
pEncCtx->pFuncList->pfInterMd = WelsMdInterMb;
|
||||
}
|
||||
WelsPSliceMdEncDynamic (pEncCtx, pSlice, kbHighestSpatial);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user