Don't use a custom calling convention for the VP library entry points
Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 3 files). Show all
Unified · Split
| @@ -45,19 +45,14 @@ · 44 unmodified lines | ||
| 45 | 45 | #include "encoder_context.h" |
| 46 | 46 | #include "utils.h" |
| 47 | 47 | |
| 48 | −#ifdef NO_DYNAMIC_VP | |
| 49 | −EResult WELSAPI CreateVpInterface (void** ppCtx, int iVersion); | |
| 50 | −EResult WELSAPI DestroyVpInterface (void** ppCtx, int iVersion); | |
| 51 | −#endif | |
| 52 | − | |
| 53 | 48 | namespace WelsSVCEnc { |
| 54 | 49 | |
| 55 | 50 | #define WelsSafeDelete(p) if(p){ delete (p); (p) = NULL; } |
| 56 | 51 | |
| 57 | 52 | |
| 58 | 53 | //***** entry API declaration ************************************************************************// |
| 59 | −typedef EResult (WELSAPI* pfnCreateVpInterface) (void**, int); | |
| 60 | −typedef EResult (WELSAPI* pfnDestroyVpInterface) (void*, int); | |
| 54 | +typedef EResult (* pfnCreateVpInterface) (void**, int); | |
| 55 | +typedef EResult (* pfnDestroyVpInterface) (void*, int); | |
| 61 | 56 | |
| 62 | 57 | int32_t WelsInitScaledPic (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic, CMemoryAlign* pMemoryAlign); |
| 63 | 58 | bool JudgeNeedOfScaling (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic); |