OSDN Git Service

remove udev
[android-x86/hardware-intel-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 /*
10  * Returns a suitable VADisplay for VA API
11  */
12 VADisplay vaGetDisplay (
13     void *android_dpy
14 );
15
16 #if ANDROID    
17 //#include <ui/Surface.h>
18 //class Surface;
19     
20 /*
21  * Output rendering
22  * Following is the rendering interface for X windows, 
23  * to get the decode output surface to a X drawable
24  * It basically performs a de-interlacing (if needed), 
25  * color space conversion and scaling to the destination
26  * rectangle
27  */
28 VAStatus vaPutSurface (
29     VADisplay dpy,
30     VASurfaceID surface,        
31     void *draw, /* Android Window/Surface */
32     short srcx,
33     short srcy,
34     unsigned short srcw,
35     unsigned short srch,
36     short destx,
37     short desty,
38     unsigned short destw,
39     unsigned short desth,
40     VARectangle *cliprects, /* client supplied destination clip list */
41     unsigned int number_cliprects, /* number of clip rects in the clip list */
42     unsigned int flags /* PutSurface flags */
43 );
44 #endif
45     
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif /* _VA_ANDROID_H_ */