OSDN Git Service

a31616292fc036f0b2fb5ab1932369385716d65b
[android-x86/hardware-intel-common-libva.git] / src / va_x11.h
1 /*
2  * Video Decode Acceleration API, X11 specific functions
3  *
4  * Rev. 0.15
5  * <jonathan.bian@intel.com>
6  *
7  * Revision History:
8  * rev 0.1 (12/10/06 Jonathan Bian) - Initial draft
9  * rev 0.11 (12/15/06 Jonathan Bian) - Fixed some errors
10  * rev 0.12 (02/05/07 Jonathan Bian) - Added VC-1 data structures
11  * rev 0.13 (02/28/07 Jonathan Bian) - Added GetDisplay()
12  * rev 0.14 (04/13/07 Jonathan Bian) - Fixed MPEG-2 PictureParameter struct, cleaned up a few funcs.
13  * rev 0.15 (04/20/07 Jonathan Bian) - Overhauled buffer management  
14  *
15  */
16
17 #ifndef _VA_X11_H_
18 #define _VA_X11_H_
19
20 #include "va.h"
21 #include <X11/Xlib.h>
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 /*
27  * Output rendering
28  * Following is the rendering interface for X windows, 
29  * to get the decode output surface to a X drawable
30  * It basically performs a de-interlacing (if needed), 
31  * color space conversion and scaling to the destination
32  * rectangle
33  */
34
35 /* de-interlace flags for vaPutSurface */
36 #define VA_FRAME_PICTURE        0x00000000 
37 #define VA_TOP_FIELD            0x00000001
38 #define VA_BOTTOM_FIELD         0x00000002
39 /* 
40  * clears the drawable with background color.
41  * for hardware overlay based implementation this flag
42  * can be used to turn off the overlay
43  */
44 #define VA_CLEAR_DRAWABLE       0x00000008 
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 clip list */
59     unsigned int number_cliprects, /* number of clip rects in the clip list */
60     unsigned int flags /* de-interlacing flags */
61 );
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif /* _VA_X11_H_ */