VDPAU: vdpau/vdpau_x11.h Source File

VDPAU

vdpau_x11.h
Go to the documentation of this file.
1/*
2 * This source file is documented using Doxygen markup.
3 * See http://www.stack.nl/~dimitri/doxygen/
4 */
5
6/*
7 * This copyright notice applies to this header file:
8 *
9 * Copyright (c) 2008-2009 NVIDIA Corporation
10 *
11 * Permission is hereby granted, free of charge, to any person
12 * obtaining a copy of this software and associated documentation
13 * files (the "Software"), to deal in the Software without
14 * restriction, including without limitation the rights to use,
15 * copy, modify, merge, publish, distribute, sublicense, and/or sell
16 * copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following
18 * conditions:
19 *
20 * The above copyright notice and this permission notice shall be
21 * included in all copies or substantial portions of the Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
25 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
28 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
30 * OTHER DEALINGS IN THE SOFTWARE.
31 */
32
40
41#ifndef _VDPAU_X11_H
42#define _VDPAU_X11_H
43
44#include <X11/Xlib.h>
45#include "vdpau.h"
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
55
113
125 typedef VdpStatus VdpDeviceCreateX11(
126 Display * display,
127 int screen,
128 /* output parameters follow */
129 VdpDevice * device,
130 VdpGetProcAddress * * get_proc_address
131);
132
138 VdpDeviceCreateX11 vdp_device_create_x11;
139
160 typedef VdpStatus VdpPresentationQueueTargetCreateX11(
161 VdpDevice device,
162 Drawable drawable,
163 /* output parameters follow */
164 VdpPresentationQueueTarget * target
165);
166
168#define VDP_FUNC_ID_PRESENTATION_QUEUE_TARGET_CREATE_X11 (VdpFuncId)(VDP_FUNC_ID_BASE_WINSYS + 0)
169
172
173#ifdef __cplusplus
174}
175#endif
176
177#endif
178
VdpDevice
uint32_t VdpDevice
An opaque handle representing a VdpDevice object.
Definition vdpau.h:1538
VdpPresentationQueueTarget
uint32_t VdpPresentationQueueTarget
An opaque handle representing the location where video will be presented.
Definition vdpau.h:4775
vdp_device_create_x11
VdpDeviceCreateX11 vdp_device_create_x11
Create a VdpDevice object for use with X11. This is an actual symbol of type VdpDeviceCreateX11.
Definition vdpau_x11.h:138
VdpDeviceCreateX11
VdpStatus VdpDeviceCreateX11(Display *display, int screen, VdpDevice *device, VdpGetProcAddress **get_proc_address)
Create a VdpDevice object for use with X11.
Definition vdpau_x11.h:125
VdpPresentationQueueTargetCreateX11
VdpStatus VdpPresentationQueueTargetCreateX11(VdpDevice device, Drawable drawable, VdpPresentationQueueTarget *target)
Create a VdpPresentationQueueTarget for use with X11.
Definition vdpau_x11.h:160
VdpStatus
VdpStatus
The set of all possible error codes.
Definition vdpau.h:1301
VdpGetProcAddress
VdpStatus VdpGetProcAddress(VdpDevice device, VdpFuncId function_id, void **function_pointer)
Retrieve a VDPAU function pointer.
Definition vdpau.h:5188
vdpau.h
The Core API.