author | Andrzej Szeszo <aszeszo@gmail.com> |
Wed, 27 Jul 2011 13:23:49 +0100 | |
branch | oi-extras |
changeset 222 | 3250b9c6cf32 |
permissions | -rw-r--r-- |
222
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
1 |
/* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
2 |
* This source file is documented using Doxygen markup. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
3 |
* See http://www.stack.nl/~dimitri/doxygen/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
4 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
5 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
6 |
/* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
7 |
* This copyright notice applies to this header file: |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
8 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
9 |
* Copyright (c) 2008-2009 NVIDIA Corporation |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
10 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
11 |
* Permission is hereby granted, free of charge, to any person |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
12 |
* obtaining a copy of this software and associated documentation |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
13 |
* files (the "Software"), to deal in the Software without |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
14 |
* restriction, including without limitation the rights to use, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
15 |
* copy, modify, merge, publish, distribute, sublicense, and/or sell |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
16 |
* copies of the Software, and to permit persons to whom the |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
17 |
* Software is furnished to do so, subject to the following |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
18 |
* conditions: |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
19 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
20 |
* The above copyright notice and this permission notice shall be |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
21 |
* included in all copies or substantial portions of the Software. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
22 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
23 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
24 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
25 |
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
26 |
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
27 |
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
28 |
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
29 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
30 |
* OTHER DEALINGS IN THE SOFTWARE. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
31 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
32 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
33 |
/** |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
34 |
* \file vdpau_x11.h |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
35 |
* \brief X11 Window System Integration Layer |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
36 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
37 |
* This file contains the \ref api_winsys_x11 X11 Window System |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
38 |
* Integration Layer. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
39 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
40 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
41 |
#ifndef _VDPAU_X11_H |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
42 |
#define _VDPAU_X11_H |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
43 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
44 |
#include <X11/Xlib.h> |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
45 |
#include "vdpau.h" |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
46 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
47 |
#ifdef __cplusplus |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
48 |
extern "C" { |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
49 |
#endif |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
50 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
51 |
/** |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
52 |
* \ingroup api_winsys |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
53 |
* @{ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
54 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
55 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
56 |
/** |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
57 |
* \defgroup api_winsys_x11 X11 Window System Integration Layer |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
58 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
59 |
* The set of VDPAU functionality specific to usage with the X |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
60 |
* Window System. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
61 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
62 |
* \section Driver Library Layout |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
63 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
64 |
* An X11-oriented VDPAU installation consists of the following |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
65 |
* components: |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
66 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
67 |
* - Header files. These files are located in the standard |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
68 |
* system header file path. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
69 |
* - \c vdpau/vdpau.h |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
70 |
* - \c vdpau/vdpau_x11.h |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
71 |
* - The VDPAU wrapper library. These files are located in the |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
72 |
* standard system (possibly X11-specific) library path. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
73 |
* - \c libvdpau.so.1 (runtime) |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
74 |
* - \c libvdpau.so (development) |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
75 |
* - Back-end driver files. These files are located in a |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
76 |
* system-defined library path, which is configurable at compile |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
77 |
* time but is typically /usr/lib/vdpau. Use `pkg-config |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
78 |
* --variable=moduledir vdpau` to locate the driver install path. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
79 |
* - \c $moduledir/libvdpau_\%s.so.1 |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
80 |
* For example: |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
81 |
* - \c /usr/lib/vdpau/libvdpau_nvidia.so.1 |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
82 |
* - \c /usr/lib/vdpau/libvdpau_intel.so.1 |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
83 |
* - \c /usr/lib/vdpau/libvdpau_ati.so.1 |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
84 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
85 |
* The VDPAU wrapper library implements just one function; \ref |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
86 |
* vdp_device_create_x11. The wrapper will implement this function |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
87 |
* by dynamically loading the appropriate back-end driver file |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
88 |
* mentioned above. Long-term, the wrapper will use a |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
89 |
* VDPAU-specific X extension to determine which back-end driver |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
90 |
* to load. Currently, the wrapper library hard-codes the driver |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
91 |
* name as "nvidia", although this can be overridden using the |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
92 |
* environment variable VDPAU_DRIVER. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
93 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
94 |
* The back-end driver is expected to implement a function named |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
95 |
* \b vdp_imp_device_create_x11. The wrapper will call this function to |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
96 |
* actually implement the \ref vdp_device_create_x11 application call. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
97 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
98 |
* Note that it is theoretically possible for an application to |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
99 |
* create multiple \ref VdpDevice "VdpDevice" objects. In this |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
100 |
* case, the wrapper library may load multiple back-end drivers |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
101 |
* into the same application, and/or invoke a specific back-end |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
102 |
* driver's \b VdpImpDeviceCreateX11 multiple times. The wrapper |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
103 |
* libray imposes no policy regarding whether the application |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
104 |
* may instantiate multiple \ref VdpDevice "VdpDevice" objects for |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
105 |
* the same display and/or screen. However, back-end drivers are |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
106 |
* free to limit the number of \ref VdpDevice "VdpDevice" objects |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
107 |
* as required by their implementation. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
108 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
109 |
* @{ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
110 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
111 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
112 |
/** |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
113 |
* \brief Create a VdpDevice object for use with X11. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
114 |
* \param[in] display The X Display that the VdpDevice VdpDevice |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
115 |
* will operate against. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
116 |
* \param[in] screen The X screen that the VdpDevice will operate |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
117 |
* against. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
118 |
* \param[out] device The new device's handle. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
119 |
* \param[out] get_proc_address The get_proc_address entry point |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
120 |
* to use with this device. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
121 |
* \return VdpStatus The completion status of the operation. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
122 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
123 |
typedef VdpStatus VdpDeviceCreateX11( |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
124 |
Display * display, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
125 |
int screen, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
126 |
/* output parameters follow */ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
127 |
VdpDevice * device, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
128 |
VdpGetProcAddress * * get_proc_address |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
129 |
); |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
130 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
131 |
/** |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
132 |
* \brief Create a VdpDevice object for use with X11. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
133 |
* This is an actual symbol of type \ref VdpDeviceCreateX11 |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
134 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
135 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
136 |
VdpDeviceCreateX11 vdp_device_create_x11; |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
137 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
138 |
/** |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
139 |
* \brief Create a VdpPresentationQueueTarget for use with X11. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
140 |
* \param[in] device The device that will contain the queue |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
141 |
* target. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
142 |
* \param[in] drawable The X11 Drawable that the presentation |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
143 |
* queue will present into. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
144 |
* \param[out] target The new queue target's handle. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
145 |
* \return VdpStatus The completion status of the operation. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
146 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
147 |
* Note: VDPAU expects to own the entire drawable for the duration of time |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
148 |
* that the presentation queue target exists. In particular, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
149 |
* implementations may choose to manipulate client-visible X11 window state |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
150 |
* as required. As such, it is recommended that applications create a |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
151 |
* dedicated window for the presentation queue target, as a child |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
152 |
* (grand-child, ...) of their top-level application window. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
153 |
* |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
154 |
* Applications may also create child-windows of the presentation queue |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
155 |
* target, which will cover any presented video in the normal fashion. VDPAU |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
156 |
* implementations will not manipulate such child windows in any fashion. |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
157 |
*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
158 |
typedef VdpStatus VdpPresentationQueueTargetCreateX11( |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
159 |
VdpDevice device, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
160 |
Drawable drawable, |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
161 |
/* output parameters follow */ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
162 |
VdpPresentationQueueTarget * target |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
163 |
); |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
164 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
165 |
/** \hideinitializer */ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
166 |
#define VDP_FUNC_ID_PRESENTATION_QUEUE_TARGET_CREATE_X11 (VdpFuncId)(VDP_FUNC_ID_BASE_WINSYS + 0) |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
167 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
168 |
/*@}*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
169 |
/*@}*/ |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
170 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
171 |
#ifdef __cplusplus |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
172 |
} |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
173 |
#endif |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
174 |
|
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
175 |
#endif |
3250b9c6cf32
Bumped NVIDIA driver version to 275.21 and fixed headers issue #1268
Andrzej Szeszo <aszeszo@gmail.com>
parents:
diff
changeset
|
176 |