2 * Thread safe wrappers around xvideo calls.
3 * Always include this file instead of <X11/xvideo.h>.
4 * This file was generated automatically by tools/make_X11wrappers
8 #ifndef __WINE_TS_XVIDEO_H
9 #define __WINE_TS_XVIDEO_H
11 #ifndef __WINE_CONFIG_H
12 # error You must include config.h to use this header
18 #include <X11/extensions/Xv.h>
19 #include <X11/extensions/XShm.h>
20 #include <X11/extensions/Xvlib.h>
22 extern void (*wine_tsx11_lock)(void);
23 extern void (*wine_tsx11_unlock)(void);
25 extern int TSXvQueryExtension(Display*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*);
26 extern int TSXvQueryAdaptors(Display*, Window, unsigned int*, XvAdaptorInfo**);
27 extern int TSXvQueryEncodings(Display*, XvPortID, unsigned int*, XvEncodingInfo**);
28 extern int TSXvPutVideo(Display*, XvPortID, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned int, unsigned int);
29 extern int TSXvPutStill(Display*, XvPortID, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned int, unsigned int);
30 extern int TSXvGetVideo(Display*, XvPortID, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned int, unsigned int);
31 extern int TSXvGetStill(Display*, XvPortID, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned int, unsigned int);
32 extern int TSXvStopVideo(Display*, XvPortID, Drawable);
33 extern int TSXvGrabPort(Display*, XvPortID, Time);
34 extern int TSXvUngrabPort(Display*, XvPortID, Time);
35 extern int TSXvSelectVideoNotify(Display*, Drawable, Bool);
36 extern int TSXvSelectPortNotify(Display*, XvPortID, Bool);
37 extern int TSXvSetPortAttribute(Display*, XvPortID, Atom, int);
38 extern int TSXvGetPortAttribute(Display*, XvPortID, Atom, int*);
39 extern int TSXvQueryBestSize(Display*, XvPortID, Bool, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int*, unsigned int*);
40 extern XvAttribute* TSXvQueryPortAttributes(Display*, XvPortID, int*);
41 extern void TSXvFreeAdaptorInfo(XvAdaptorInfo*);
42 extern void TSXvFreeEncodingInfo(XvEncodingInfo*);
43 extern XvImageFormatValues * TSXvListImageFormats(Display*, XvPortID, int*);
44 extern XvImage * TSXvCreateImage(Display*, XvPortID, int, char*, int, int);
45 extern int TSXvPutImage(Display*, XvPortID, Drawable, GC, XvImage*, int, int, unsigned int, unsigned int, int, int, unsigned int, unsigned int);
46 extern int TSXvShmPutImage(Display*, XvPortID, Drawable, GC, XvImage*, int, int, unsigned int, unsigned int, int, int, unsigned int, unsigned int, Bool);
47 extern XvImage * TSXvShmCreateImage(Display*, XvPortID, int, char*, int, int, XShmSegmentInfo*);
49 #endif /* defined(HAVE_XVIDEO) */
51 #endif /* __WINE_TS_XVIDEO_H */