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