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