Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Thread safe wrappers around xvideo calls. |
| 3 | * This file was generated automatically by tools/make_X11wrappers |
| 4 | * DO NOT EDIT! |
| 5 | */ |
| 6 | |
| 7 | #include "config.h" |
| 8 | |
| 9 | #ifdef HAVE_XVIDEO |
| 10 | |
| 11 | #include <X11/Xlib.h> |
| 12 | #include <X11/extensions/Xv.h> |
| 13 | #include <X11/extensions/XShm.h> |
| 14 | #include <X11/extensions/Xvlib.h> |
| 15 | |
| 16 | #include "debugtools.h" |
| 17 | #include "ts_xvideo.h" |
| 18 | #include "x11drv.h" |
| 19 | |
| 20 | DEFAULT_DEBUG_CHANNEL(x11) |
| 21 | |
| 22 | int TSXvQueryExtension(Display* a0, unsigned int* a1, unsigned int* a2, unsigned int* a3, unsigned int* a4, unsigned int* a5) |
| 23 | { |
| 24 | int r; |
| 25 | TRACE("Call XvQueryExtension\n"); |
| 26 | EnterCriticalSection( &X11DRV_CritSection ); |
| 27 | r = XvQueryExtension( a0, a1, a2, a3, a4, a5); |
| 28 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 29 | TRACE("Ret XvQueryExtension\n"); |
| 30 | return r; |
| 31 | } |
| 32 | |
| 33 | int TSXvQueryAdaptors(Display* a0, Window a1, unsigned int* a2, XvAdaptorInfo** a3) |
| 34 | { |
| 35 | int r; |
| 36 | TRACE("Call XvQueryAdaptors\n"); |
| 37 | EnterCriticalSection( &X11DRV_CritSection ); |
| 38 | r = XvQueryAdaptors( a0, a1, a2, a3); |
| 39 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 40 | TRACE("Ret XvQueryAdaptors\n"); |
| 41 | return r; |
| 42 | } |
| 43 | |
| 44 | int TSXvQueryEncodings(Display* a0, XvPortID a1, unsigned int* a2, XvEncodingInfo** a3) |
| 45 | { |
| 46 | int r; |
| 47 | TRACE("Call XvQueryEncodings\n"); |
| 48 | EnterCriticalSection( &X11DRV_CritSection ); |
| 49 | r = XvQueryEncodings( a0, a1, a2, a3); |
| 50 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 51 | TRACE("Ret XvQueryEncodings\n"); |
| 52 | return r; |
| 53 | } |
| 54 | |
| 55 | int TSXvPutVideo(Display* a0, XvPortID a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9, unsigned int a10, unsigned int a11) |
| 56 | { |
| 57 | int r; |
| 58 | TRACE("Call XvPutVideo\n"); |
| 59 | EnterCriticalSection( &X11DRV_CritSection ); |
| 60 | r = XvPutVideo( a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); |
| 61 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 62 | TRACE("Ret XvPutVideo\n"); |
| 63 | return r; |
| 64 | } |
| 65 | |
| 66 | int TSXvPutStill(Display* a0, XvPortID a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9, unsigned int a10, unsigned int a11) |
| 67 | { |
| 68 | int r; |
| 69 | TRACE("Call XvPutStill\n"); |
| 70 | EnterCriticalSection( &X11DRV_CritSection ); |
| 71 | r = XvPutStill( a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); |
| 72 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 73 | TRACE("Ret XvPutStill\n"); |
| 74 | return r; |
| 75 | } |
| 76 | |
| 77 | int TSXvGetVideo(Display* a0, XvPortID a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9, unsigned int a10, unsigned int a11) |
| 78 | { |
| 79 | int r; |
| 80 | TRACE("Call XvGetVideo\n"); |
| 81 | EnterCriticalSection( &X11DRV_CritSection ); |
| 82 | r = XvGetVideo( a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); |
| 83 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 84 | TRACE("Ret XvGetVideo\n"); |
| 85 | return r; |
| 86 | } |
| 87 | |
| 88 | int TSXvGetStill(Display* a0, XvPortID a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9, unsigned int a10, unsigned int a11) |
| 89 | { |
| 90 | int r; |
| 91 | TRACE("Call XvGetStill\n"); |
| 92 | EnterCriticalSection( &X11DRV_CritSection ); |
| 93 | r = XvGetStill( a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); |
| 94 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 95 | TRACE("Ret XvGetStill\n"); |
| 96 | return r; |
| 97 | } |
| 98 | |
| 99 | int TSXvStopVideo(Display* a0, XvPortID a1, Drawable a2) |
| 100 | { |
| 101 | int r; |
| 102 | TRACE("Call XvStopVideo\n"); |
| 103 | EnterCriticalSection( &X11DRV_CritSection ); |
| 104 | r = XvStopVideo( a0, a1, a2); |
| 105 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 106 | TRACE("Ret XvStopVideo\n"); |
| 107 | return r; |
| 108 | } |
| 109 | |
| 110 | int TSXvGrabPort(Display* a0, XvPortID a1, Time a2) |
| 111 | { |
| 112 | int r; |
| 113 | TRACE("Call XvGrabPort\n"); |
| 114 | EnterCriticalSection( &X11DRV_CritSection ); |
| 115 | r = XvGrabPort( a0, a1, a2); |
| 116 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 117 | TRACE("Ret XvGrabPort\n"); |
| 118 | return r; |
| 119 | } |
| 120 | |
| 121 | int TSXvUngrabPort(Display* a0, XvPortID a1, Time a2) |
| 122 | { |
| 123 | int r; |
| 124 | TRACE("Call XvUngrabPort\n"); |
| 125 | EnterCriticalSection( &X11DRV_CritSection ); |
| 126 | r = XvUngrabPort( a0, a1, a2); |
| 127 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 128 | TRACE("Ret XvUngrabPort\n"); |
| 129 | return r; |
| 130 | } |
| 131 | |
| 132 | int TSXvSelectVideoNotify(Display* a0, Drawable a1, Bool a2) |
| 133 | { |
| 134 | int r; |
| 135 | TRACE("Call XvSelectVideoNotify\n"); |
| 136 | EnterCriticalSection( &X11DRV_CritSection ); |
| 137 | r = XvSelectVideoNotify( a0, a1, a2); |
| 138 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 139 | TRACE("Ret XvSelectVideoNotify\n"); |
| 140 | return r; |
| 141 | } |
| 142 | |
| 143 | int TSXvSelectPortNotify(Display* a0, XvPortID a1, Bool a2) |
| 144 | { |
| 145 | int r; |
| 146 | TRACE("Call XvSelectPortNotify\n"); |
| 147 | EnterCriticalSection( &X11DRV_CritSection ); |
| 148 | r = XvSelectPortNotify( a0, a1, a2); |
| 149 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 150 | TRACE("Ret XvSelectPortNotify\n"); |
| 151 | return r; |
| 152 | } |
| 153 | |
| 154 | int TSXvSetPortAttribute(Display* a0, XvPortID a1, Atom a2, int a3) |
| 155 | { |
| 156 | int r; |
| 157 | TRACE("Call XvSetPortAttribute\n"); |
| 158 | EnterCriticalSection( &X11DRV_CritSection ); |
| 159 | r = XvSetPortAttribute( a0, a1, a2, a3); |
| 160 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 161 | TRACE("Ret XvSetPortAttribute\n"); |
| 162 | return r; |
| 163 | } |
| 164 | |
| 165 | int TSXvGetPortAttribute(Display* a0, XvPortID a1, Atom a2, int* a3) |
| 166 | { |
| 167 | int r; |
| 168 | TRACE("Call XvGetPortAttribute\n"); |
| 169 | EnterCriticalSection( &X11DRV_CritSection ); |
| 170 | r = XvGetPortAttribute( a0, a1, a2, a3); |
| 171 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 172 | TRACE("Ret XvGetPortAttribute\n"); |
| 173 | return r; |
| 174 | } |
| 175 | |
| 176 | int TSXvQueryBestSize(Display* a0, XvPortID a1, Bool a2, unsigned int a3, unsigned int a4, unsigned int a5, unsigned int a6, unsigned int* a7, unsigned int* a8) |
| 177 | { |
| 178 | int r; |
| 179 | TRACE("Call XvQueryBestSize\n"); |
| 180 | EnterCriticalSection( &X11DRV_CritSection ); |
| 181 | r = XvQueryBestSize( a0, a1, a2, a3, a4, a5, a6, a7, a8); |
| 182 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 183 | TRACE("Ret XvQueryBestSize\n"); |
| 184 | return r; |
| 185 | } |
| 186 | |
| 187 | XvAttribute* TSXvQueryPortAttributes(Display* a0, XvPortID a1, int* a2) |
| 188 | { |
| 189 | XvAttribute* r; |
| 190 | TRACE("Call XvQueryPortAttributes\n"); |
| 191 | EnterCriticalSection( &X11DRV_CritSection ); |
| 192 | r = XvQueryPortAttributes( a0, a1, a2); |
| 193 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 194 | TRACE("Ret XvQueryPortAttributes\n"); |
| 195 | return r; |
| 196 | } |
| 197 | |
| 198 | void TSXvFreeAdaptorInfo(XvAdaptorInfo* a0) |
| 199 | { |
| 200 | TRACE("Call XvFreeAdaptorInfo\n"); |
| 201 | EnterCriticalSection( &X11DRV_CritSection ); |
| 202 | XvFreeAdaptorInfo( a0); |
| 203 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 204 | TRACE("Ret XvFreeAdaptorInfo\n"); |
| 205 | } |
| 206 | |
| 207 | void TSXvFreeEncodingInfo(XvEncodingInfo* a0) |
| 208 | { |
| 209 | TRACE("Call XvFreeEncodingInfo\n"); |
| 210 | EnterCriticalSection( &X11DRV_CritSection ); |
| 211 | XvFreeEncodingInfo( a0); |
| 212 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 213 | TRACE("Ret XvFreeEncodingInfo\n"); |
| 214 | } |
| 215 | |
| 216 | XvImageFormatValues * TSXvListImageFormats(Display* a0, XvPortID a1, int* a2) |
| 217 | { |
| 218 | XvImageFormatValues * r; |
| 219 | TRACE("Call XvListImageFormats\n"); |
| 220 | EnterCriticalSection( &X11DRV_CritSection ); |
| 221 | r = XvListImageFormats( a0, a1, a2); |
| 222 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 223 | TRACE("Ret XvListImageFormats\n"); |
| 224 | return r; |
| 225 | } |
| 226 | |
| 227 | XvImage * TSXvCreateImage(Display* a0, XvPortID a1, int a2, char* a3, int a4, int a5) |
| 228 | { |
| 229 | XvImage * r; |
| 230 | TRACE("Call XvCreateImage\n"); |
| 231 | EnterCriticalSection( &X11DRV_CritSection ); |
| 232 | r = XvCreateImage( a0, a1, a2, a3, a4, a5); |
| 233 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 234 | TRACE("Ret XvCreateImage\n"); |
| 235 | return r; |
| 236 | } |
| 237 | |
| 238 | int TSXvPutImage(Display* a0, XvPortID a1, Drawable a2, GC a3, XvImage* a4, int a5, int a6, unsigned int a7, unsigned int a8, int a9, int a10, unsigned int a11, unsigned int a12) |
| 239 | { |
| 240 | int r; |
| 241 | TRACE("Call XvPutImage\n"); |
| 242 | EnterCriticalSection( &X11DRV_CritSection ); |
| 243 | r = XvPutImage( a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); |
| 244 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 245 | TRACE("Ret XvPutImage\n"); |
| 246 | return r; |
| 247 | } |
| 248 | |
| 249 | int TSXvShmPutImage(Display* a0, XvPortID a1, Drawable a2, GC a3, XvImage* a4, int a5, int a6, unsigned int a7, unsigned int a8, int a9, int a10, unsigned int a11, unsigned int a12, Bool a13) |
| 250 | { |
| 251 | int r; |
| 252 | TRACE("Call XvShmPutImage\n"); |
| 253 | EnterCriticalSection( &X11DRV_CritSection ); |
| 254 | r = XvShmPutImage( a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13); |
| 255 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 256 | TRACE("Ret XvShmPutImage\n"); |
| 257 | return r; |
| 258 | } |
| 259 | |
| 260 | XvImage * TSXvShmCreateImage(Display* a0, XvPortID a1, int a2, char* a3, int a4, int a5, XShmSegmentInfo* a6) |
| 261 | { |
| 262 | XvImage * r; |
| 263 | TRACE("Call XvShmCreateImage\n"); |
| 264 | EnterCriticalSection( &X11DRV_CritSection ); |
| 265 | r = XvShmCreateImage( a0, a1, a2, a3, a4, a5, a6); |
| 266 | LeaveCriticalSection( &X11DRV_CritSection ); |
| 267 | TRACE("Ret XvShmCreateImage\n"); |
| 268 | return r; |
| 269 | } |
| 270 | |
| 271 | #endif /* defined(HAVE_XVIDEO) */ |
| 272 | |