forked from Red54/libvdpau-va-gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vdpau-locking.h
86 lines (80 loc) · 4.57 KB
/
vdpau-locking.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
/*
* 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.
*/
#ifndef __VDPAU_LOCKING_H
#define __VDPAU_LOCKING_H
#include <vdpau/vdpau.h>
#include <vdpau/vdpau_x11.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include "globals.h"
VdpStatus
lockedVdpDeviceCreateX11(Display *display, int screen, VdpDevice *device,
VdpGetProcAddress **get_proc_address);
VdpGetApiVersion lockedVdpGetApiVersion;
VdpDecoderQueryCapabilities lockedVdpDecoderQueryCapabilities;
VdpDecoderCreate lockedVdpDecoderCreate;
VdpDecoderDestroy lockedVdpDecoderDestroy;
VdpDecoderGetParameters lockedVdpDecoderGetParameters;
VdpDecoderRender lockedVdpDecoderRender;
VdpOutputSurfaceQueryCapabilities lockedVdpOutputSurfaceQueryCapabilities;
VdpOutputSurfaceQueryGetPutBitsNativeCapabilities lockedVdpOutputSurfaceQueryGetPutBitsNativeCapabilities;
VdpOutputSurfaceQueryPutBitsIndexedCapabilities lockedVdpOutputSurfaceQueryPutBitsIndexedCapabilities;
VdpOutputSurfaceQueryPutBitsYCbCrCapabilities lockedVdpOutputSurfaceQueryPutBitsYCbCrCapabilities;
VdpOutputSurfaceCreate lockedVdpOutputSurfaceCreate;
VdpOutputSurfaceDestroy lockedVdpOutputSurfaceDestroy;
VdpOutputSurfaceGetParameters lockedVdpOutputSurfaceGetParameters;
VdpOutputSurfaceGetBitsNative lockedVdpOutputSurfaceGetBitsNative;
VdpOutputSurfacePutBitsNative lockedVdpOutputSurfacePutBitsNative;
VdpOutputSurfacePutBitsIndexed lockedVdpOutputSurfacePutBitsIndexed;
VdpOutputSurfacePutBitsYCbCr lockedVdpOutputSurfacePutBitsYCbCr;
VdpVideoMixerQueryFeatureSupport lockedVdpVideoMixerQueryFeatureSupport;
VdpVideoMixerQueryParameterSupport lockedVdpVideoMixerQueryParameterSupport;
VdpVideoMixerQueryAttributeSupport lockedVdpVideoMixerQueryAttributeSupport;
VdpVideoMixerQueryParameterValueRange lockedVdpVideoMixerQueryParameterValueRange;
VdpVideoMixerQueryAttributeValueRange lockedVdpVideoMixerQueryAttributeValueRange;
VdpVideoMixerCreate lockedVdpVideoMixerCreate;
VdpVideoMixerSetFeatureEnables lockedVdpVideoMixerSetFeatureEnables;
VdpVideoMixerSetAttributeValues lockedVdpVideoMixerSetAttributeValues;
VdpVideoMixerGetFeatureSupport lockedVdpVideoMixerGetFeatureSupport;
VdpVideoMixerGetFeatureEnables lockedVdpVideoMixerGetFeatureEnables;
VdpVideoMixerGetParameterValues lockedVdpVideoMixerGetParameterValues;
VdpVideoMixerGetAttributeValues lockedVdpVideoMixerGetAttributeValues;
VdpVideoMixerDestroy lockedVdpVideoMixerDestroy;
VdpVideoMixerRender lockedVdpVideoMixerRender;
VdpPresentationQueueTargetDestroy lockedVdpPresentationQueueTargetDestroy;
VdpPresentationQueueCreate lockedVdpPresentationQueueCreate;
VdpPresentationQueueDestroy lockedVdpPresentationQueueDestroy;
VdpPresentationQueueSetBackgroundColor lockedVdpPresentationQueueSetBackgroundColor;
VdpPresentationQueueGetBackgroundColor lockedVdpPresentationQueueGetBackgroundColor;
VdpPresentationQueueGetTime lockedVdpPresentationQueueGetTime;
VdpPresentationQueueDisplay lockedVdpPresentationQueueDisplay;
VdpPresentationQueueBlockUntilSurfaceIdle lockedVdpPresentationQueueBlockUntilSurfaceIdle;
VdpPresentationQueueQuerySurfaceStatus lockedVdpPresentationQueueQuerySurfaceStatus;
VdpVideoSurfaceQueryCapabilities lockedVdpVideoSurfaceQueryCapabilities;
VdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities lockedVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities;
VdpVideoSurfaceCreate lockedVdpVideoSurfaceCreate;
VdpVideoSurfaceDestroy lockedVdpVideoSurfaceDestroy;
VdpVideoSurfaceGetParameters lockedVdpVideoSurfaceGetParameters;
VdpVideoSurfaceGetBitsYCbCr lockedVdpVideoSurfaceGetBitsYCbCr;
VdpVideoSurfacePutBitsYCbCr lockedVdpVideoSurfacePutBitsYCbCr;
VdpBitmapSurfaceQueryCapabilities lockedVdpBitmapSurfaceQueryCapabilities;
VdpBitmapSurfaceCreate lockedVdpBitmapSurfaceCreate;
VdpBitmapSurfaceDestroy lockedVdpBitmapSurfaceDestroy;
VdpBitmapSurfaceGetParameters lockedVdpBitmapSurfaceGetParameters;
VdpBitmapSurfacePutBitsNative lockedVdpBitmapSurfacePutBitsNative;
VdpDeviceDestroy lockedVdpDeviceDestroy;
VdpGetInformationString lockedVdpGetInformationString;
VdpGenerateCSCMatrix lockedVdpGenerateCSCMatrix;
VdpOutputSurfaceRenderOutputSurface lockedVdpOutputSurfaceRenderOutputSurface;
VdpOutputSurfaceRenderBitmapSurface lockedVdpOutputSurfaceRenderBitmapSurface;
VdpPreemptionCallbackRegister lockedVdpPreemptionCallbackRegister;
VdpPresentationQueueTargetCreateX11 lockedVdpPresentationQueueTargetCreateX11;
VdpGetProcAddress lockedVdpGetProcAddress;
Bool locked_glXMakeCurrent(Display *dpy, GLXDrawable drawable, GLXContext ctx);
void locked_glXSwapBuffers(Display *dpy, GLXDrawable drawable);
#endif /* __VDPAU_LOCKING_H */