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 | #include "encoder_context.h" | 45 | #include "encoder_context.h" |
| 46 | #include "utils.h" | 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 | namespace WelsSVCEnc { | 48 | namespace WelsSVCEnc { |
| 54 | 49 | ||
| 55 | #define WelsSafeDelete(p) if(p){ delete (p); (p) = NULL; } | 50 | #define WelsSafeDelete(p) if(p){ delete (p); (p) = NULL; } |
| 56 | 51 | ||
| 57 | 52 | ||
| 58 | //***** entry API declaration ************************************************************************// | 53 | //***** entry API declaration ************************************************************************// |
| 59 | typedef EResult (WELSAPI* pfnCreateVpInterface) (void**, int); | 54 | typedef EResult (* pfnCreateVpInterface) (void**, int); |
| 60 | typedef EResult (WELSAPI* pfnDestroyVpInterface) (void*, int); | 55 | typedef EResult (* pfnDestroyVpInterface) (void*, int); |
| 61 | 56 | ||
| 62 | int32_t WelsInitScaledPic (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic, CMemoryAlign* pMemoryAlign); | 57 | int32_t WelsInitScaledPic (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic, CMemoryAlign* pMemoryAlign); |
| 63 | bool JudgeNeedOfScaling (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic); | 58 | bool JudgeNeedOfScaling (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic); |