History

Pretty printed the C++ code with astyle

Ethan Hugg committed 12 years ago

Commit ff6b6691 parent 063709c225 files · +48457 −51954Browse files

Showing the changes to processing/interface (1 of 225 files). Show all

Unified · Split

processing/interface/IWelsVP.h+286−304
@@ -1,304 +1,286 @@
1/*!1/*!
2 * \copy2 * \copy
3 * Copyright (c) 2004-2013, Cisco Systems3 * Copyright (c) 2004-2013, Cisco Systems
4 * All rights reserved.4 * All rights reserved.
5 *5 *
6 * Redistribution and use in source and binary forms, with or without6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions7 * modification, are permitted provided that the following conditions
8 * are met:8 * are met:
9 *9 *
10 * * Redistributions of source code must retain the above copyright10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.11 * notice, this list of conditions and the following disclaimer.
12 *12 *
13 * * Redistributions in binary form must reproduce the above copyright13 * * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the15 * the documentation and/or other materials provided with the
16 * distribution.16 * distribution.
17 *17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE21 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,22 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;24 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE28 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.29 * POSSIBILITY OF SUCH DAMAGE.
30 *30 *
31 *31 *
32 * \file : IWelsVP.h32 * \file : IWelsVP.h
33 *33 *
34 * \brief : Interface of wels video processor class34 * \brief : Interface of wels video processor class
35 *35 *
36 * \date : 2011/01/0436 * \date : 2011/01/04
37 *37 *
38 * \description : 1. should support both C/C++ style interface38 * \description : 1. should support both C/C++ style interface
39 * 2. should concern with the feature extension requirement 39 * 2. should concern with the feature extension requirement
40 * 3. should care the usage of "char"==>40 * 3. should care the usage of "char"==>
41 * 1) value char : signed char/unsigned char41 * 1) value char : signed char/unsigned char
42 * 2) string char : char42 * 2) string char : char
43 *43 *
44 *************************************************************************************44 *************************************************************************************
45 */45 */
46 46
47#ifndef _IWELSVP_H_47#ifndef _IWELSVP_H_
48#define _IWELSVP_H_ 48#define _IWELSVP_H_
49 49
50#ifdef _WIN3250#ifdef _WIN32
51#define WELSAPI __stdcall51#define WELSAPI __stdcall
52#else52#else
53#define WELSAPI 53#define WELSAPI
54#endif54#endif
55 55
56#define WELSVP_MAJOR_VERSION 156#define WELSVP_MAJOR_VERSION 1
57#define WELSVP_MINOR_VERSION 157#define WELSVP_MINOR_VERSION 1
58#define WELSVP_VERSION ((WELSVP_MAJOR_VERSION << 8) + WELSVP_MINOR_VERSION)58#define WELSVP_VERSION ((WELSVP_MAJOR_VERSION << 8) + WELSVP_MINOR_VERSION)
59 59
60typedef enum 60typedef enum {
61{61 RET_SUCCESS = 0,
62 RET_SUCCESS = 0,62 RET_FAILED = -1,
63 RET_FAILED = -1,63 RET_INVALIDPARAM = -2,
64 RET_INVALIDPARAM = -2,64 RET_OUTOFMEMORY = -3,
65 RET_OUTOFMEMORY = -3,65 RET_NOTSUPPORTED = -4,
66 RET_NOTSUPPORTED = -4,66 RET_UNEXPECTED = -5,
67 RET_UNEXPECTED = -5,67 RET_NEEDREINIT = -6
68 RET_NEEDREINIT = -668} EResult;
69} EResult;69
70 70typedef enum {
71typedef enum 71 VIDEO_FORMAT_NULL = 0, /* invalid format */
72{ 72 /*rgb color formats*/
73 VIDEO_FORMAT_NULL = 0, /* invalid format */73 VIDEO_FORMAT_RGB = 1, /* rgb 24bits */
74 /*rgb color formats*/74 VIDEO_FORMAT_RGBA = 2, /* rgba */
75 VIDEO_FORMAT_RGB = 1, /* rgb 24bits */75 VIDEO_FORMAT_RGB555 = 3, /* rgb555 */
76 VIDEO_FORMAT_RGBA = 2, /* rgba */76 VIDEO_FORMAT_RGB565 = 4, /* rgb565 */
77 VIDEO_FORMAT_RGB555 = 3, /* rgb555 */77 VIDEO_FORMAT_BGR = 5, /* bgr 24bits */
78 VIDEO_FORMAT_RGB565 = 4, /* rgb565 */78 VIDEO_FORMAT_BGRA = 6, /* bgr 32bits */
79 VIDEO_FORMAT_BGR = 5, /* bgr 24bits */79 VIDEO_FORMAT_ABGR = 7, /* abgr */
80 VIDEO_FORMAT_BGRA = 6, /* bgr 32bits */80 VIDEO_FORMAT_ARGB = 8, /* argb */
81 VIDEO_FORMAT_ABGR = 7, /* abgr */81
82 VIDEO_FORMAT_ARGB = 8, /* argb */82 /*yuv color formats*/
83 83 VIDEO_FORMAT_YUY2 = 20, /* yuy2 */
84 /*yuv color formats*/84 VIDEO_FORMAT_YVYU = 21, /* yvyu */
85 VIDEO_FORMAT_YUY2 = 20, /* yuy2 */85 VIDEO_FORMAT_UYVY = 22, /* uyvy */
86 VIDEO_FORMAT_YVYU = 21, /* yvyu */86 VIDEO_FORMAT_I420 = 23, /* yuv 4:2:0 planar */
87 VIDEO_FORMAT_UYVY = 22, /* uyvy */87 VIDEO_FORMAT_YV12 = 24, /* yuv 4:2:0 planar */
88 VIDEO_FORMAT_I420 = 23, /* yuv 4:2:0 planar */ 88 VIDEO_FORMAT_INTERNAL = 25, /* Only Used for SVC decoder testbed */
89 VIDEO_FORMAT_YV12 = 24, /* yuv 4:2:0 planar */89 VIDEO_FORMAT_NV12 = 26, /* y planar + uv packed */
90 VIDEO_FORMAT_INTERNAL = 25, /* Only Used for SVC decoder testbed */ 90 VIDEO_FORMAT_I422 = 27, /* yuv 4:2:2 planar */
91 VIDEO_FORMAT_NV12 = 26, /* y planar + uv packed */91 VIDEO_FORMAT_I444 = 28, /* yuv 4:4:4 planar */
92 VIDEO_FORMAT_I422 = 27, /* yuv 4:2:2 planar */92 VIDEO_FORMAT_YUYV = 20, /* yuv 4:2:2 packed */
93 VIDEO_FORMAT_I444 = 28, /* yuv 4:4:4 planar */93
94 VIDEO_FORMAT_YUYV = 20, /* yuv 4:2:2 packed */94 VIDEO_FORMAT_RGB24 = 1,
95 95 VIDEO_FORMAT_RGB32 = 2,
96 VIDEO_FORMAT_RGB24 = 1,96 VIDEO_FORMAT_RGB24_INV = 5,
97 VIDEO_FORMAT_RGB32 = 2,97 VIDEO_FORMAT_RGB32_INV = 6,
98 VIDEO_FORMAT_RGB24_INV = 5,98 VIDEO_FORMAT_RGB555_INV = 7,
99 VIDEO_FORMAT_RGB32_INV = 6,99 VIDEO_FORMAT_RGB565_INV = 8,
100 VIDEO_FORMAT_RGB555_INV = 7,100 VIDEO_FORMAT_YUV2 = 21,
101 VIDEO_FORMAT_RGB565_INV = 8,101 VIDEO_FORMAT_420 = 23,
102 VIDEO_FORMAT_YUV2 = 21,102
103 VIDEO_FORMAT_420 = 23,103 VIDEO_FORMAT_VFlip = 0x80000000
104 104} EVideoFormat;
105 VIDEO_FORMAT_VFlip = 0x80000000 105
106} EVideoFormat;106typedef enum {
107 107 BUFFER_HOSTMEM = 0,
108typedef enum 108 BUFFER_SURFACE
109{ 109} EPixMapBufferProperty;
110 BUFFER_HOSTMEM = 0,110
111 BUFFER_SURFACE111typedef struct {
112} EPixMapBufferProperty;112 int iRectTop;
113 113 int iRectLeft;
114typedef struct114 int iRectWidth;
115{115 int iRectHeight;
116 int iRectTop;116} SRect;
117 int iRectLeft;117
118 int iRectWidth;118typedef struct {
119 int iRectHeight;119 void* pPixel[3];
120} SRect;120 int iSizeInBits;
121 121 int iStride[3];
122typedef struct122 SRect sRect;
123{123 EVideoFormat eFormat;
124 void *pPixel[3]; 124 EPixMapBufferProperty eProperty;//not use? to remove? but how about the size of SPixMap?
125 int iSizeInBits;125} SPixMap;
126 int iStride[3];126
127 SRect sRect; 127typedef enum {
128 EVideoFormat eFormat;128 METHOD_NULL = 0,
129 EPixMapBufferProperty eProperty;//not use? to remove? but how about the size of SPixMap?129 METHOD_COLORSPACE_CONVERT ,//not support yet
130} SPixMap;130 METHOD_DENOISE ,
131 131 METHOD_SCENE_CHANGE_DETECTION ,
132typedef enum132 METHOD_DOWNSAMPLE ,
133{ 133 METHOD_VAA_STATISTICS ,
134 METHOD_NULL = 0,134 METHOD_BACKGROUND_DETECTION ,
135 METHOD_COLORSPACE_CONVERT ,//not support yet135 METHOD_ADAPTIVE_QUANT ,
136 METHOD_DENOISE ,136 METHOD_COMPLEXITY_ANALYSIS ,
137 METHOD_SCENE_CHANGE_DETECTION ,137 METHOD_IMAGE_ROTATE ,
138 METHOD_DOWNSAMPLE ,138 METHOD_MASK
139 METHOD_VAA_STATISTICS ,139} EMethods;
140 METHOD_BACKGROUND_DETECTION ,140
141 METHOD_ADAPTIVE_QUANT ,141//-----------------------------------------------------------------//
142 METHOD_COMPLEXITY_ANALYSIS ,142// Algorithm parameters define
143 METHOD_IMAGE_ROTATE ,143//-----------------------------------------------------------------//
144 METHOD_MASK 144
145} EMethods;145typedef struct {
146 146 int bSceneChangeFlag; // 0:false ; 1:true
147//-----------------------------------------------------------------//147} SSceneChangeResult;
148// Algorithm parameters define148
149//-----------------------------------------------------------------//149typedef enum {
150 150 SIMILAR_SCENE, //similar scene
151typedef struct151 MEDIUM_CHANGED_SCENE, //medium changed scene
152{152 LARGE_CHANGED_SCENE, //large changed scene
153 int bSceneChangeFlag; // 0:false ; 1:true153} ESceneChangeIdc;
154} SSceneChangeResult;154
155 155typedef struct {
156typedef enum156 unsigned char* pCurY; // Y data of current frame
157{157 unsigned char* pRefY; // Y data of pRef frame for diff calc
158 SIMILAR_SCENE, //similar scene 158 int (*pSad8x8)[4]; // sad of 8x8, every 4 in the same 16x16 get together
159 MEDIUM_CHANGED_SCENE, //medium changed scene159 int* pSsd16x16; // sum of square difference of 16x16
160 LARGE_CHANGED_SCENE, //large changed scene160 int* pSum16x16; // sum of 16x16
161} ESceneChangeIdc;161 int* pSumOfSquare16x16; // sum of square of 16x16
162 162 int (*pSumOfDiff8x8)[4];
163typedef struct163 unsigned char (*pMad8x8)[4];
164{164 int iFrameSad; // sad of frame
165 unsigned char *pCurY; // Y data of current frame165} SVAACalcResult;
166 unsigned char *pRefY; // Y data of pRef frame for diff calc166
167 int (*pSad8x8)[4]; // sad of 8x8, every 4 in the same 16x16 get together167typedef struct {
168 int *pSsd16x16; // sum of square difference of 16x16168 int iCalcVar;
169 int *pSum16x16; // sum of 16x16169 int iCalcBgd;
170 int *pSumOfSquare16x16; // sum of square of 16x16170 int iCalcSsd;
171 int (*pSumOfDiff8x8)[4];171 int iReserved;
172 unsigned char (*pMad8x8)[4];172 SVAACalcResult* pCalcResult;
173 int iFrameSad; // sad of frame173} SVAACalcParam;
174} SVAACalcResult;174
175 175typedef struct {
176typedef struct176 signed char* pBackgroundMbFlag;
177{177 SVAACalcResult* pCalcRes;
178 int iCalcVar;178} SBGDInterface;
179 int iCalcBgd;179
180 int iCalcSsd;180typedef enum {
181 int iReserved;181 AQ_QUALITY_MODE, //Quality mode
182 SVAACalcResult *pCalcResult;182 AQ_BITRATE_MODE, //Bitrate mode
183} SVAACalcParam;183} EAQModes;
184 184
185typedef struct185typedef struct {
186{186 unsigned short uiMotionIndex;
187 signed char *pBackgroundMbFlag;187 unsigned short uiTextureIndex;
188 SVAACalcResult *pCalcRes;188} SMotionTextureUnit;
189} SBGDInterface;189
190 190typedef struct {
191typedef enum191 int iAdaptiveQuantMode; // 0:quality mode, 1:bitrates mode
192{192 SVAACalcResult* pCalcResult;
193 AQ_QUALITY_MODE, //Quality mode193 SMotionTextureUnit* pMotionTextureUnit;
194 AQ_BITRATE_MODE, //Bitrate mode194
195}EAQModes;195 signed char* pMotionTextureIndexToDeltaQp;
196 196 double dAverMotionTextureIndexToDeltaQp;
197typedef struct 197} SAdaptiveQuantizationParam;
198{198
199 unsigned short uiMotionIndex;199typedef enum {
200 unsigned short uiTextureIndex;200 FRAME_SAD = 0,
201} SMotionTextureUnit;201 GOM_SAD = -1,
202 202 GOM_VAR = -2
203typedef struct203} EComplexityAnalysisMode;
204{204
205 int iAdaptiveQuantMode; // 0:quality mode, 1:bitrates mode205typedef struct {
206 SVAACalcResult *pCalcResult;206 int iComplexityAnalysisMode;
207 SMotionTextureUnit *pMotionTextureUnit;207 int iCalcBgd;
208 208 int iMbNumInGom;
209 signed char *pMotionTextureIndexToDeltaQp; 209 int iFrameComplexity;
210 double dAverMotionTextureIndexToDeltaQp;210 int* pGomComplexity;
211} SAdaptiveQuantizationParam;211 int* pGomForegroundBlockNum;
212 212 signed char* pBackgroundMbFlag;
213typedef enum 213 unsigned int* uiRefMbType;
214{214 SVAACalcResult* pCalcResult;
215 FRAME_SAD = 0,215} SComplexityAnalysisParam;
216 GOM_SAD = -1,216
217 GOM_VAR = -2217/////////////////////////////////////////////////////////////////////////////////////////////
218} EComplexityAnalysisMode;218
219 219typedef struct {
220typedef struct220 void* pCtx;
221{221 EResult (*Init) (void* pCtx, int iType, void* pCfg);
222 int iComplexityAnalysisMode;222 EResult (*Uninit) (void* pCtx, int iType);
223 int iCalcBgd;223 EResult (*Flush) (void* pCtx, int iType);
224 int iMbNumInGom; 224 EResult (*Process) (void* pCtx, int iType, SPixMap* pSrc, SPixMap* dst);
225 int iFrameComplexity;225 EResult (*Get) (void* pCtx, int iType, void* pParam);
226 int *pGomComplexity;226 EResult (*Set) (void* pCtx, int iType, void* pParam);
227 int *pGomForegroundBlockNum;227 EResult (*SpecialFeature) (void* pCtx, int iType, void* pIn, void* pOut);
228 signed char *pBackgroundMbFlag;228} IWelsVPc;
229 unsigned int *uiRefMbType;229
230 SVAACalcResult *pCalcResult;230#if defined(__cplusplus) && !defined(CINTERFACE) /* C++ style interface */
231} SComplexityAnalysisParam;231
232 232class IWelsVP {
233/////////////////////////////////////////////////////////////////////////////////////////////233 public:
234 234 virtual ~IWelsVP() {}
235typedef struct 235
236{236 public:
237 void *pCtx;237 virtual EResult Init (int iType, void* pCfg) = 0;
238 EResult (*Init) (void *pCtx, int iType, void *pCfg);238 virtual EResult Uninit (int iType) = 0;
239 EResult (*Uninit) (void *pCtx, int iType);239 virtual EResult Flush (int iType) = 0;
240 EResult (*Flush) (void *pCtx, int iType);240 virtual EResult Process (int iType, SPixMap* pSrc, SPixMap* dst) = 0;
241 EResult (*Process) (void *pCtx, int iType, SPixMap *pSrc, SPixMap *dst); 241 virtual EResult Get (int iType, void* pParam) = 0;
242 EResult (*Get) (void *pCtx, int iType, void *pParam); 242 virtual EResult Set (int iType, void* pParam) = 0;
243 EResult (*Set) (void *pCtx, int iType, void *pParam); 243 virtual EResult SpecialFeature (int iType, void* pIn, void* pOut) = 0;
244 EResult (*SpecialFeature) (void *pCtx, int iType, void *pIn, void *pOut);244};
245} IWelsVPc;245
246 246/* Recommend to invoke the interface via the micro for convenient */
247#if defined(__cplusplus) && !defined(CINTERFACE) /* C++ style interface */247#define IWelsVPFunc_Init(p, a, b) (p)->Init(a, b)
248 248#define IWelsVPFunc_Uninit(p, a) (p)->Uninit(a)
249class IWelsVP249#define IWelsVPFunc_Flush(p, a) (p)->Flush(a)
250{250#define IWelsVPFunc_Process(p, a, b, c) (p)->Process(a, b, c)
251public:251#define IWelsVPFunc_Get(p, a, b) (p)->Get(a, b)
252 virtual ~IWelsVP() {}252#define IWelsVPFunc_Set(p, a, b) (p)->Set(a, b)
253 253#define IWelsVPFunc_SpecialFeature(p, a, b, c) (p)->SpecialFeature(a, b, c)
254public: 254
255 virtual EResult Init (int iType, void *pCfg) = 0; 255/* C++ interface version */
256 virtual EResult Uninit (int iType) = 0;256#define WELSVP_INTERFACE_VERION (0x8000 + (WELSVP_VERSION & 0x7fff))
257 virtual EResult Flush (int iType) = 0;257#define WELSVP_EXTERNC_BEGIN extern "C" {
258 virtual EResult Process (int iType, SPixMap *pSrc, SPixMap *dst) = 0; 258#define WELSVP_EXTERNC_END }
259 virtual EResult Get (int iType, void *pParam) = 0; 259
260 virtual EResult Set (int iType, void *pParam) = 0; 260#else /* C style interface */
261 virtual EResult SpecialFeature (int iType, void *pIn, void *pOut) = 0;261
262};262/* Recommend to invoke the interface via the micro for convenient */
263 263#define IWelsVPFunc_Init(p, a, b) (p)->Init(p->h, a, b)
264/* Recommend to invoke the interface via the micro for convenient */264#define IWelsVPFunc_Uninit(p, a) (p)->Uninit(p->h, a)
265#define IWelsVPFunc_Init(p, a, b) (p)->Init(a, b) 265#define IWelsVPFunc_Flush(p, a) (p)->Flush(p->h, a)
266#define IWelsVPFunc_Uninit(p, a) (p)->Uninit(a) 266#define IWelsVPFunc_Process(p, a, b, c) (p)->Process(p->h, a, b, c)
267#define IWelsVPFunc_Flush(p, a) (p)->Flush(a) 267#define IWelsVPFunc_Get(p, a, b) (p)->Get(p->h, a, b)
268#define IWelsVPFunc_Process(p, a, b, c) (p)->Process(a, b, c) 268#define IWelsVPFunc_Set(p, a, b) (p)->Set(p->h, a, b)
269#define IWelsVPFunc_Get(p, a, b) (p)->Get(a, b) 269#define IWelsVPFunc_SpecialFeature(p, a, b, c) (p)->SpecialFeature(p->h, a, b, c)
270#define IWelsVPFunc_Set(p, a, b) (p)->Set(a, b) 270
271#define IWelsVPFunc_SpecialFeature(p, a, b, c) (p)->SpecialFeature(a, b, c)271/* C interface version */
272 272#define WELSVP_INTERFACE_VERION (0x0001 + (WELSVP_VERSION & 0x7fff))
273/* C++ interface version */273#define WELSVP_EXTERNC_BEGIN
274#define WELSVP_INTERFACE_VERION (0x8000 + (WELSVP_VERSION & 0x7fff)) 274#define WELSVP_EXTERNC_END
275#define WELSVP_EXTERNC_BEGIN extern "C" {275
276#define WELSVP_EXTERNC_END }276#endif
277 277
278#else /* C style interface */278WELSVP_EXTERNC_BEGIN
279 279EResult WELSAPI CreateVpInterface (void** ppCtx, int iVersion /*= WELSVP_INTERFACE_VERION*/);
280/* Recommend to invoke the interface via the micro for convenient */280EResult WELSAPI DestroyVpInterface (void* pCtx , int iVersion /*= WELSVP_INTERFACE_VERION*/);
281#define IWelsVPFunc_Init(p, a, b) (p)->Init(p->h, a, b) 281WELSVP_EXTERNC_END
282#define IWelsVPFunc_Uninit(p, a) (p)->Uninit(p->h, a) 282
283#define IWelsVPFunc_Flush(p, a) (p)->Flush(p->h, a) 283//////////////////////////////////////////////////////////////////////////////////////////////
284#define IWelsVPFunc_Process(p, a, b, c) (p)->Process(p->h, a, b, c) 284#endif // _IWELSVP_H_
285#define IWelsVPFunc_Get(p, a, b) (p)->Get(p->h, a, b) 285
286#define IWelsVPFunc_Set(p, a, b) (p)->Set(p->h, a, b) 286
287#define IWelsVPFunc_SpecialFeature(p, a, b, c) (p)->SpecialFeature(p->h, a, b, c)
288
289/* C interface version */
290#define WELSVP_INTERFACE_VERION (0x0001 + (WELSVP_VERSION & 0x7fff))
291#define WELSVP_EXTERNC_BEGIN
292#define WELSVP_EXTERNC_END
293
294#endif
295
296WELSVP_EXTERNC_BEGIN
297EResult WELSAPI CreateVpInterface (void **ppCtx, int iVersion /*= WELSVP_INTERFACE_VERION*/);
298EResult WELSAPI DestroyVpInterface (void *pCtx , int iVersion /*= WELSVP_INTERFACE_VERION*/);
299WELSVP_EXTERNC_END
300
301//////////////////////////////////////////////////////////////////////////////////////////////
302#endif // _IWELSVP_H_
303
304

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