File: dummy_impl.c

package info (click to toggle)
libvpl 1%3A2.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,580 kB
  • sloc: cpp: 92,604; ansic: 6,176; python: 4,312; sh: 323; makefile: 7
file content (411 lines) | stat: -rw-r--r-- 10,283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
/*############################################################################
  # Copyright (C) 2020 Intel Corporation
  #
  # SPDX-License-Identifier: MIT
  ############################################################################*/

#include "./mfxdefs.h"
#include "./mfxcommon.h"
#include "./mfxstructures.h"
#include "./mfxdispatcher.h"
#include "./mfximplcaps.h"
#include "./mfxjpeg.h"
#include "./mfxvideo.h"
#include "./mfxadapter.h"

#define UNUSED_PARAM(x) (void)(x)

/* mfxdispatcher.h */
mfxLoader MFX_CDECL MFXLoad()
{
    return (mfxLoader)1;
}

void MFX_CDECL MFXUnload(mfxLoader loader)
{
    UNUSED_PARAM(loader);
    return;
}
mfxConfig MFX_CDECL MFXCreateConfig(mfxLoader loader)
{
    UNUSED_PARAM(loader);
    return (mfxConfig)2;
}

mfxStatus MFX_CDECL MFXSetConfigFilterProperty(mfxConfig config, const mfxU8* name, mfxVariant value)
{
    UNUSED_PARAM(config);
    UNUSED_PARAM(name);
    UNUSED_PARAM(value);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXEnumImplementations(mfxLoader loader, mfxU32 i, mfxImplCapsDeliveryFormat format, mfxHDL* idesc)
{
    UNUSED_PARAM(loader);
    UNUSED_PARAM(i);
    UNUSED_PARAM(format);
    UNUSED_PARAM(idesc);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXCreateSession(mfxLoader loader, mfxU32 i, mfxSession* session)
{
    UNUSED_PARAM(loader);
    UNUSED_PARAM(i);
    UNUSED_PARAM(session);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXDispReleaseImplDescription(mfxLoader loader, mfxHDL hdl)
{
    UNUSED_PARAM(loader);
    UNUSED_PARAM(hdl);
    return MFX_ERR_NONE;
}

/* mfximpcaps.h */

mfxHDL* MFX_CDECL MFXQueryImplsDescription(mfxImplCapsDeliveryFormat format, mfxU32 *num)
{
    UNUSED_PARAM(format);
    UNUSED_PARAM(num);
    return (mfxHDL*)(1);  //NOLINT
}

mfxStatus MFX_CDECL MFXReleaseImplDescription(mfxHDL hdl)
{
    UNUSED_PARAM(hdl);
    return MFX_ERR_NONE;
}

/* mfxsession.h */

mfxStatus MFX_CDECL MFXClose(mfxSession session)
{
    UNUSED_PARAM(session);
    return MFX_ERR_NONE;
}

/* mfxvideo.h */


mfxStatus MFX_CDECL MFXVideoCORE_SetFrameAllocator(mfxSession session, mfxFrameAllocator *allocator)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(allocator);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoCORE_SetHandle(mfxSession session, mfxHandleType type, mfxHDL hdl)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(type);
    UNUSED_PARAM(hdl);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoCORE_GetHandle(mfxSession session, mfxHandleType type, mfxHDL *hdl)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(type);
    UNUSED_PARAM(hdl);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoCORE_QueryPlatform(mfxSession session, mfxPlatform* platform)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(platform);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoCORE_SyncOperation(mfxSession session, mfxSyncPoint syncp, mfxU32 wait)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(syncp);
    UNUSED_PARAM(wait);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXMemory_GetSurfaceForVPP(mfxSession session, mfxFrameSurface1** surface)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(surface);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXMemory_GetSurfaceForVPPOut(mfxSession session, mfxFrameSurface1** surface)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(surface);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXMemory_GetSurfaceForEncode(mfxSession session, mfxFrameSurface1** surface)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(surface);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXMemory_GetSurfaceForDecode(mfxSession session, mfxFrameSurface1** surface)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(surface);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_Query(mfxSession session, mfxVideoParam *in, mfxVideoParam *out)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(in);
    UNUSED_PARAM(out);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_QueryIOSurf(mfxSession session, mfxVideoParam *par, mfxFrameAllocRequest *request)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    UNUSED_PARAM(request);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_Init(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_Reset(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_Close(mfxSession session)
{
    UNUSED_PARAM(session);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_GetVideoParam(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_GetEncodeStat(mfxSession session, mfxEncodeStat *stat)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(stat);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoENCODE_EncodeFrameAsync(mfxSession session, mfxEncodeCtrl *ctrl, mfxFrameSurface1 *surface, mfxBitstream *bs, mfxSyncPoint *syncp)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(ctrl);
    UNUSED_PARAM(surface);
    UNUSED_PARAM(bs);
    UNUSED_PARAM(syncp);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_Query(mfxSession session, mfxVideoParam *in, mfxVideoParam *out)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(in);
    UNUSED_PARAM(out);
    return MFX_ERR_NONE;
}
   
mfxStatus MFX_CDECL MFXVideoDECODE_DecodeHeader(mfxSession session, mfxBitstream *bs, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(bs);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_QueryIOSurf(mfxSession session, mfxVideoParam *par, mfxFrameAllocRequest *request)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    UNUSED_PARAM(request);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_Init(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_Reset(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_Close(mfxSession session)
{
    UNUSED_PARAM(session);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_GetVideoParam(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_GetDecodeStat(mfxSession session, mfxDecodeStat *stat)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(stat);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_SetSkipMode(mfxSession session, mfxSkipMode mode)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(mode);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_GetPayload(mfxSession session, mfxU64 *ts, mfxPayload *payload)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(ts);
    UNUSED_PARAM(payload);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoDECODE_DecodeFrameAsync(mfxSession session, mfxBitstream *bs, mfxFrameSurface1 *surface_work, mfxFrameSurface1 **surface_out, mfxSyncPoint *syncp)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(bs);
    UNUSED_PARAM(surface_work);
    UNUSED_PARAM(surface_out);
    UNUSED_PARAM(syncp);
    return MFX_ERR_NONE;
}
 
mfxStatus MFX_CDECL MFXVideoVPP_Query(mfxSession session, mfxVideoParam *in, mfxVideoParam *out)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(in);
    UNUSED_PARAM(out);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoVPP_QueryIOSurf(mfxSession session, mfxVideoParam *par, mfxFrameAllocRequest request[2])
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    UNUSED_PARAM(request);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoVPP_Init(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoVPP_Reset(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoVPP_Close(mfxSession session)
{
    UNUSED_PARAM(session);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoVPP_GetVideoParam(mfxSession session, mfxVideoParam *par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(par);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoVPP_GetVPPStat(mfxSession session, mfxVPPStat *stat)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(stat);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXVideoVPP_RunFrameVPPAsync(mfxSession session, mfxFrameSurface1 *in, mfxFrameSurface1 *out, mfxExtVppAuxData *aux, mfxSyncPoint *syncp)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(in);
    UNUSED_PARAM(out);
    UNUSED_PARAM(aux);
    UNUSED_PARAM(syncp);
    return MFX_ERR_NONE;
}

/* mfxadapter.h */

mfxStatus MFX_CDECL MFXQueryAdapters(mfxComponentInfo* input_info, mfxAdaptersInfo* adapters)
{
    UNUSED_PARAM(input_info);
    UNUSED_PARAM(adapters);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXQueryAdaptersDecode(mfxBitstream* bitstream, mfxU32 codec_id, mfxAdaptersInfo* adapters)
{
    UNUSED_PARAM(bitstream);
    UNUSED_PARAM(codec_id);
    UNUSED_PARAM(adapters);
    return MFX_ERR_NONE;
}

mfxStatus MFX_CDECL MFXQueryAdaptersNumber(mfxU32* num_adapters)
{
    UNUSED_PARAM(num_adapters);
    return MFX_ERR_NONE;
}

mfxStatus  MFX_CDECL MFXVideoDECODE_VPP_Init(mfxSession session, mfxVideoParam* decode_par, mfxVideoChannelParam** vpp_par_array, mfxU32 num_channel_par)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(decode_par);
    UNUSED_PARAM(vpp_par_array);
    UNUSED_PARAM(num_channel_par);
    return MFX_ERR_NONE;
}

mfxStatus  MFX_CDECL MFXVideoDECODE_VPP_DecodeFrameAsync(mfxSession session, mfxBitstream *bs, mfxU32* skip_channels, mfxU32 num_skip_channels, mfxSurfaceArray **surf_array_out)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(bs);
    UNUSED_PARAM(skip_channels);
    UNUSED_PARAM(num_skip_channels);
    UNUSED_PARAM(surf_array_out);
    return MFX_ERR_NONE;
}

mfxStatus MFXVideoVPP_ProcessFrameAsync(mfxSession session, mfxFrameSurface1 *in, mfxFrameSurface1 **out)
{
    UNUSED_PARAM(session);
    UNUSED_PARAM(in);
    UNUSED_PARAM(out);
    return MFX_ERR_NONE;
}