Array bound check
[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 #ifdef __cplusplus
7 #ifdef ANDROID
8 #include <surfaceflinger/ISurface.h>
9 using namespace android;
10
11 /*
12  * Output rendering
13  * Following is the rendering interface for Android system, 
14  * to get the decode output surface to an ISurface object.
15  * It basically performs a de-interlacing (if needed), 
16  * color space conversion and scaling to the destination
17  * rectangle
18  */
19 VAStatus vaPutSurface (
20     VADisplay dpy,
21     VASurfaceID surface,        
22     sp<ISurface> draw, /* Android Window/Surface */
23     short srcx,
24     short srcy,
25     unsigned short srcw,
26     unsigned short srch,
27     short destx,
28     short desty,
29     unsigned short destw,
30     unsigned short desth,
31     VARectangle *cliprects, /* client supplied destination clip list */
32     unsigned int number_cliprects, /* number of clip rects in the clip list */
33     unsigned int flags /* PutSurface flags */
34 );
35
36 #endif /* ANDROID */
37 #endif /* __cplusplus */
38
39 #endif /* _VA_ANDROID_H_ */