OSDN Git Service

Remove and redifine some Xlib Macros, use void* instead of Surface* for VAStatus...
[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
6 #ifdef ANDROID    
7 #include <ui/Surface.h>
8 using namespace android;
9 #endif
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 /*
15  * Returns a suitable VADisplay for VA API
16  */
17 VADisplay vaGetDisplay (
18     void *android_dpy
19 );
20
21 #ifdef ANDROID    
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     sp<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 #endif /* _VA_ANDROID_H_ */