OSDN Git Service

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