OSDN Git Service

Upload latest libVA library
[android-x86/hardware-intel-common-libva.git] / libva / src / X11 / va_x11.h
1 #ifndef _VA_X11_H_
2 #define _VA_X11_H_
3
4 #ifdef IN_LIBVA
5 #include "va.h"
6 #else
7 #include <va/va.h>
8 #endif
9 #include <X11/Xlib.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 /*
16  * Returns a suitable VADisplay for VA API
17  */
18 VADisplay vaGetDisplay (
19     Display *dpy
20 );
21
22 /*
23  * Output rendering
24  * Following is the rendering interface for X windows, 
25  * to get the decode output surface to a X drawable
26  * It basically performs a de-interlacing (if needed), 
27  * color space conversion and scaling to the destination
28  * rectangle
29  */
30 /* de-interlacing flags for vaPutSurface */
31 #define VA_FRAME_PICTURE        0x00000000 
32 #define VA_TOP_FIELD            0x00000001
33 #define VA_BOTTOM_FIELD         0x00000002
34
35 /* 
36  * clears the drawable with background color.
37  * for hardware overlay based implementation this flag
38  * can be used to turn off the overlay
39  */
40 #define VA_CLEAR_DRAWABLE       0x00000008 
41
42 /* color space conversion flags for vaPutSurface */
43 #define VA_SRC_BT601            0x00000010
44 #define VA_SRC_BT709            0x00000020
45
46 VAStatus vaPutSurface (
47     VADisplay dpy,
48     VASurfaceID surface,        
49     Drawable draw, /* X Drawable */
50     short srcx,
51     short srcy,
52     unsigned short srcw,
53     unsigned short srch,
54     short destx,
55     short desty,
56     unsigned short destw,
57     unsigned short desth,
58     VARectangle *cliprects, /* client supplied destination clip list */
59     unsigned int number_cliprects, /* number of clip rects in the clip list */
60     unsigned int flags /* PutSurface flags */
61 );
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif /* _VA_X11_H_ */