History

Merge pull request #334 from mstorsjo/cleanup-vp-interface

Don't use a custom calling convention for the VP library entry points

volvet committed 12 years ago

Commit 75f8b412 parents e7ed80c 21e9c833 files · +6 −17Browse files

Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/wels_preprocess.cpp+2−7
@@ -45,19 +45,14 @@ · 44 unmodified lines
4545 #include "encoder_context.h"
4646 #include "utils.h"
4747
48−#ifdef NO_DYNAMIC_VP
49−EResult WELSAPI CreateVpInterface (void** ppCtx, int iVersion);
50−EResult WELSAPI DestroyVpInterface (void** ppCtx, int iVersion);
51−#endif
52−
5348 namespace WelsSVCEnc {
5449
5550 #define WelsSafeDelete(p) if(p){ delete (p); (p) = NULL; }
5651
5752
5853 //***** 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);
6156
6257 int32_t WelsInitScaledPic (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic, CMemoryAlign* pMemoryAlign);
6358 bool JudgeNeedOfScaling (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPic);

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