forked from Red54/libvdpau-va-gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvdpau-trace.h
344 lines (273 loc) · 15.6 KB
/
vdpau-trace.h
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
/*
* Copyright 2013 Rinat Ibragimov
*
* This file is part of libvdpau-va-gl
*
* libvdpau-va-gl distributed under the terms of LGPLv3. See COPYING for details.
*/
#include <stdio.h>
#include <vdpau/vdpau.h>
#include <vdpau/vdpau_x11.h>
#include "reverse-constant.h"
void
traceEnableTracing(int flag);
void
traceSetTarget(FILE *target);
void
traceResetTarget(void);
void
traceSetHeader(const char *header, const char *header_blank);
void
traceInfo(const char *buf, ...);
void
traceError(const char *buf, ...);
void
traceSetHook(void (*hook)(void *param1, void *param2, int origin, int after), void *param);
void
traceCallHook(int origin, int after, void *shortterm_param);
void
traceVdpGetErrorString(const char *impl_state, VdpStatus status);
void
traceVdpGetApiVersion(const char *impl_state, uint32_t *api_version);
void
traceVdpDecoderQueryCapabilities(const char *impl_state, VdpDevice device,
VdpDecoderProfile profile, VdpBool *is_supported,
uint32_t *max_level, uint32_t *max_macroblocks,
uint32_t *max_width, uint32_t *max_height);
void
traceVdpDecoderCreate(const char *impl_state, VdpDevice device, VdpDecoderProfile profile,
uint32_t width, uint32_t height, uint32_t max_references,
VdpDecoder *decoder);
void
traceVdpDecoderDestroy(const char *impl_state, VdpDecoder decoder);
void
traceVdpDecoderGetParameters(const char *impl_state, VdpDecoder decoder,
VdpDecoderProfile *profile, uint32_t *width, uint32_t *height);
void
traceVdpDecoderRender(const char *impl_state, VdpDecoder decoder, VdpVideoSurface target,
VdpPictureInfo const *picture_info, uint32_t bitstream_buffer_count,
VdpBitstreamBuffer const *bitstream_buffers);
void
traceVdpOutputSurfaceQueryCapabilities(const char *impl_state, VdpDevice device,
VdpRGBAFormat surface_rgba_format, VdpBool *is_supported,
uint32_t *max_width, uint32_t *max_height);
void
traceVdpOutputSurfaceQueryGetPutBitsNativeCapabilities(const char *impl_state, VdpDevice device,
VdpRGBAFormat surface_rgba_format,
VdpBool *is_supported);
void
traceVdpOutputSurfaceQueryPutBitsIndexedCapabilities(const char *impl_state, VdpDevice device,
VdpRGBAFormat surface_rgba_format,
VdpIndexedFormat bits_indexed_format,
VdpColorTableFormat color_table_format,
VdpBool *is_supported);
void
traceVdpOutputSurfaceQueryPutBitsYCbCrCapabilities(const char *impl_state, VdpDevice device,
VdpRGBAFormat surface_rgba_format,
VdpYCbCrFormat bits_ycbcr_format,
VdpBool *is_supported);
void
traceVdpOutputSurfaceCreate(const char *impl_state, VdpDevice device, VdpRGBAFormat rgba_format,
uint32_t width, uint32_t height, VdpOutputSurface *surface);
void
traceVdpOutputSurfaceDestroy(const char *impl_state, VdpOutputSurface surface);
void
traceVdpOutputSurfaceGetParameters(const char *impl_state, VdpOutputSurface surface,
VdpRGBAFormat *rgba_format, uint32_t *width, uint32_t *height);
void
traceVdpOutputSurfaceGetBitsNative(const char *impl_state, VdpOutputSurface surface,
VdpRect const *source_rect, void *const *destination_data,
uint32_t const *destination_pitches);
void
traceVdpOutputSurfacePutBitsNative(const char *impl_state, VdpOutputSurface surface,
void const *const *source_data, uint32_t const *source_pitches,
VdpRect const *destination_rect);
void
traceVdpOutputSurfacePutBitsIndexed(const char *impl_state, VdpOutputSurface surface,
VdpIndexedFormat source_indexed_format,
void const *const *source_data, uint32_t const *source_pitch,
VdpRect const *destination_rect,
VdpColorTableFormat color_table_format,
void const *color_table);
void
traceVdpOutputSurfacePutBitsYCbCr(const char *impl_state, VdpOutputSurface surface,
VdpYCbCrFormat source_ycbcr_format,
void const *const *source_data, uint32_t const *source_pitches,
VdpRect const *destination_rect, VdpCSCMatrix const *csc_matrix);
void
traceVdpVideoMixerQueryFeatureSupport(const char *impl_state, VdpDevice device,
VdpVideoMixerFeature feature, VdpBool *is_supported);
void
traceVdpVideoMixerQueryParameterSupport(const char *impl_state, VdpDevice device,
VdpVideoMixerParameter parameter,
VdpBool *is_supported);
void
traceVdpVideoMixerQueryAttributeSupport(const char *impl_state, VdpDevice device,
VdpVideoMixerAttribute attribute, VdpBool *is_supported);
void
traceVdpVideoMixerQueryParameterValueRange(const char *impl_state, VdpDevice device,
VdpVideoMixerParameter parameter,
void *min_value, void *max_value);
void
traceVdpVideoMixerQueryAttributeValueRange(const char *impl_state, VdpDevice device,
VdpVideoMixerAttribute attribute,
void *min_value, void *max_value);
void
traceVdpVideoMixerCreate(const char *impl_state, VdpDevice device, uint32_t feature_count,
VdpVideoMixerFeature const *features, uint32_t parameter_count,
VdpVideoMixerParameter const *parameters,
void const *const *parameter_values, VdpVideoMixer *mixer);
void
traceVdpVideoMixerSetFeatureEnables(const char *impl_state, VdpVideoMixer mixer,
uint32_t feature_count, VdpVideoMixerFeature const *features,
VdpBool const *feature_enables);
void
traceVdpVideoMixerSetAttributeValues(const char *impl_state, VdpVideoMixer mixer,
uint32_t attribute_count,
VdpVideoMixerAttribute const *attributes,
void const *const *attribute_values);
void
traceVdpVideoMixerGetFeatureSupport(const char *impl_state, VdpVideoMixer mixer,
uint32_t feature_count, VdpVideoMixerFeature const *features,
VdpBool *feature_supports);
void
traceVdpVideoMixerGetFeatureEnables(const char *impl_state, VdpVideoMixer mixer,
uint32_t feature_count, VdpVideoMixerFeature const *features,
VdpBool *feature_enables);
void
traceVdpVideoMixerGetParameterValues(const char *impl_state, VdpVideoMixer mixer,
uint32_t parameter_count,
VdpVideoMixerParameter const *parameters,
void *const *parameter_values);
void
traceVdpVideoMixerGetAttributeValues(const char *impl_state, VdpVideoMixer mixer,
uint32_t attribute_count,
VdpVideoMixerAttribute const *attributes,
void *const *attribute_values);
void
traceVdpVideoMixerDestroy(const char *impl_state, VdpVideoMixer mixer);
void
traceVdpVideoMixerRender(const char *impl_state, VdpVideoMixer mixer,
VdpOutputSurface background_surface, VdpRect const *background_source_rect,
VdpVideoMixerPictureStructure current_picture_structure,
uint32_t video_surface_past_count,
VdpVideoSurface const *video_surface_past,
VdpVideoSurface video_surface_current, uint32_t video_surface_future_count,
VdpVideoSurface const *video_surface_future,
VdpRect const *video_source_rect, VdpOutputSurface destination_surface,
VdpRect const *destination_rect, VdpRect const *destination_video_rect,
uint32_t layer_count, VdpLayer const *layers);
void
traceVdpPresentationQueueTargetDestroy(const char *impl_state,
VdpPresentationQueueTarget presentation_queue_target);
void
traceVdpPresentationQueueCreate(const char *impl_state, VdpDevice device,
VdpPresentationQueueTarget presentation_queue_target,
VdpPresentationQueue *presentation_queue);
void
traceVdpPresentationQueueDestroy(const char *impl_state, VdpPresentationQueue presentation_queue);
void
traceVdpPresentationQueueSetBackgroundColor(const char *impl_state,
VdpPresentationQueue presentation_queue,
VdpColor *const background_color);
void
traceVdpPresentationQueueGetBackgroundColor(const char *impl_state,
VdpPresentationQueue presentation_queue,
VdpColor *background_color);
void
traceVdpPresentationQueueGetTime(const char *impl_state, VdpPresentationQueue presentation_queue,
VdpTime *current_time);
void
traceVdpPresentationQueueDisplay(const char *impl_state, VdpPresentationQueue presentation_queue,
VdpOutputSurface surface, uint32_t clip_width,
uint32_t clip_height, VdpTime earliest_presentation_time);
void
traceVdpPresentationQueueBlockUntilSurfaceIdle(const char *impl_state,
VdpPresentationQueue presentation_queue,
VdpOutputSurface surface,
VdpTime *first_presentation_time);
void
traceVdpPresentationQueueQuerySurfaceStatus(const char *impl_state,
VdpPresentationQueue presentation_queue,
VdpOutputSurface surface,
VdpPresentationQueueStatus *status,
VdpTime *first_presentation_time);
void
traceVdpVideoSurfaceQueryCapabilities(const char *impl_state, VdpDevice device,
VdpChromaType surface_chroma_type, VdpBool *is_supported,
uint32_t *max_width, uint32_t *max_height);
void
traceVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities(const char *impl_state, VdpDevice device,
VdpChromaType surface_chroma_type,
VdpYCbCrFormat bits_ycbcr_format,
VdpBool *is_supported);
void
traceVdpVideoSurfaceCreate(const char *impl_state, VdpDevice device, VdpChromaType chroma_type,
uint32_t width, uint32_t height, VdpVideoSurface *surface);
void
traceVdpVideoSurfaceDestroy(const char *impl_state, VdpVideoSurface surface);
void
traceVdpVideoSurfaceGetParameters(const char *impl_state, VdpVideoSurface surface,
VdpChromaType *chroma_type, uint32_t *width, uint32_t *height);
void
traceVdpVideoSurfaceGetBitsYCbCr(const char *impl_state, VdpVideoSurface surface,
VdpYCbCrFormat destination_ycbcr_format,
void *const *destination_data,
uint32_t const *destination_pitches);
void
traceVdpVideoSurfacePutBitsYCbCr(const char *impl_state, VdpVideoSurface surface,
VdpYCbCrFormat source_ycbcr_format, void const *const *source_data,
uint32_t const *source_pitches);
void
traceVdpBitmapSurfaceQueryCapabilities(const char *impl_state, VdpDevice device,
VdpRGBAFormat surface_rgba_format, VdpBool *is_supported,
uint32_t *max_width, uint32_t *max_height);
void
traceVdpBitmapSurfaceCreate(const char *impl_state, VdpDevice device, VdpRGBAFormat rgba_format,
uint32_t width, uint32_t height, VdpBool frequently_accessed,
VdpBitmapSurface *surface);
void
traceVdpBitmapSurfaceDestroy(const char *impl_state, VdpBitmapSurface surface);
void
traceVdpBitmapSurfaceGetParameters(const char *impl_state, VdpBitmapSurface surface,
VdpRGBAFormat *rgba_format, uint32_t *width, uint32_t *height,
VdpBool *frequently_accessed);
void
traceVdpBitmapSurfacePutBitsNative(const char *impl_state, VdpBitmapSurface surface,
void const *const *source_data, uint32_t const *source_pitches,
VdpRect const *destination_rect);
void
traceVdpDeviceDestroy(const char *impl_state, VdpDevice device);
void
traceVdpGetInformationString(const char *impl_state, char const **information_string);
void
traceVdpGenerateCSCMatrix(const char *impl_state, VdpProcamp *procamp, VdpColorStandard standard,
VdpCSCMatrix *csc_matrix);
void
traceVdpOutputSurfaceRenderOutputSurface(const char *impl_state,
VdpOutputSurface destination_surface,
VdpRect const *destination_rect,
VdpOutputSurface source_surface,
VdpRect const *source_rect, VdpColor const *colors,
VdpOutputSurfaceRenderBlendState const *blend_state,
uint32_t flags);
void
traceVdpOutputSurfaceRenderBitmapSurface(const char *impl_state,
VdpOutputSurface destination_surface,
VdpRect const *destination_rect,
VdpBitmapSurface source_surface,
VdpRect const *source_rect, VdpColor const *colors,
VdpOutputSurfaceRenderBlendState const *blend_state,
uint32_t flags);
void
traceVdpPreemptionCallbackRegister(const char *impl_state, VdpDevice device,
VdpPreemptionCallback callback, void *context);
void
traceVdpPresentationQueueTargetCreateX11(const char *impl_state, VdpDevice device,
Drawable drawable, VdpPresentationQueueTarget *target);
void
traceVdpGetProcAddress(const char *impl_state, VdpDevice device, VdpFuncId function_id,
void **function_pointer);
void
traceVdpDeviceCreateX11(const char *trace_state, Display *display, int screen, VdpDevice *device,
VdpGetProcAddress **get_proc_address);