2 * Video Decode Acceleration API, X11 specific functions
5 * <jonathan.bian@intel.com>
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
28 * Returns a suitable VADisplay for VA API
30 VADisplay vaGetDisplay (
36 * Following is the rendering interface for X windows,
37 * to get the decode output surface to a X drawable
38 * It basically performs a de-interlacing (if needed),
39 * color space conversion and scaling to the destination
43 /* de-interlace flags for vaPutSurface */
44 #define VA_FRAME_PICTURE 0x00000000
45 #define VA_TOP_FIELD 0x00000001
46 #define VA_BOTTOM_FIELD 0x00000002
48 * clears the drawable with background color.
49 * for hardware overlay based implementation this flag
50 * can be used to turn off the overlay
52 #define VA_CLEAR_DRAWABLE 0x00000008
54 VAStatus vaPutSurface (
57 Drawable draw, /* X Drawable */
66 VARectangle *cliprects, /* client supplied clip list */
67 unsigned int number_cliprects, /* number of clip rects in the clip list */
68 unsigned int flags /* de-interlacing flags */
75 #endif /* _VA_X11_H_ */