OSDN Git Service

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