Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/libva/va/va_android.h

Issue 10380004: Add libva, a library for video accelerated video processing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 <surfaceflinger/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_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698