OSDN Git Service

declare vaGetDisplay in va.h instead of va_xxx.h
[android-x86/hardware-intel-common-libva.git] / va / va_x11.h
1 #ifndef _VA_X11_H_
2 #define _VA_X11_H_
3
4 #include <va/va.h>
5 #include <X11/Xlib.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /*
12  * Output rendering
13  * Following is the rendering interface for X windows, 
14  * to get the decode output surface to a X drawable
15  * It basically performs a de-interlacing (if needed), 
16  * color space conversion and scaling to the destination
17  * rectangle
18  */
19 VAStatus vaPutSurface (
20     VADisplay dpy,
21     VASurfaceID surface,        
22     Drawable draw, /* X Drawable */
23     short srcx,
24     short srcy,
25     unsigned short srcw,
26     unsigned short srch,
27     short destx,
28     short desty,
29     unsigned short destw,
30     unsigned short desth,
31     VARectangle *cliprects, /* client supplied destination clip list */
32     unsigned int number_cliprects, /* number of clip rects in the clip list */
33     unsigned int flags /* PutSurface flags */
34 );
35
36 #ifdef __cplusplus
37 }
38 #endif
39
40 #endif /* _VA_X11_H_ */