diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2010-10-26 11:19:08 -0700 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2010-10-26 11:19:08 -0700 |
commit | f6eef816a99fa8b69a22f5763cd9b95588bc90dc (patch) | |
tree | fbedd426c24a06083ffc16d9d49526e4fe46fe1c | |
parent | c37a8b020e661032b4c89b6fda937e72c1097cd0 (diff) | |
download | libva-f6eef816a99fa8b69a22f5763cd9b95588bc90dc.tar.gz |
fix build issue on Android
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
-rw-r--r-- | va/android/va_android.cpp | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/va/android/va_android.cpp b/va/android/va_android.cpp index 6979873..b4727aa 100644 --- a/va/android/va_android.cpp +++ b/va/android/va_android.cpp @@ -272,31 +272,33 @@ VADisplay vaGetDisplay ( #ifdef ANDROID -extern int fool_postp; /* do nothing for vaPutSurface if set */ -extern int trace_flag; /* trace vaPutSurface parameters */ +extern "C" { + extern int fool_postp; /* do nothing for vaPutSurface if set */ + extern int trace_flag; /* trace vaPutSurface parameters */ + + void va_TracePutSurface ( + VADisplay dpy, + VASurfaceID surface, + void *draw, /* the target Drawable */ + short srcx, + short srcy, + unsigned short srcw, + unsigned short srch, + short destx, + short desty, + unsigned short destw, + unsigned short desth, + VARectangle *cliprects, /* client supplied clip list */ + unsigned int number_cliprects, /* number of clip rects in the clip list */ + unsigned int flags /* de-interlacing flags */ + ); +} + #define VA_TRACE(trace_func,...) \ if (trace_flag) { \ trace_func(__VA_ARGS__); \ } -void va_TracePutSurface ( - VADisplay dpy, - VASurfaceID surface, - void *draw, /* the target Drawable */ - short srcx, - short srcy, - unsigned short srcw, - unsigned short srch, - short destx, - short desty, - unsigned short destw, - unsigned short desth, - VARectangle *cliprects, /* client supplied clip list */ - unsigned int number_cliprects, /* number of clip rects in the clip list */ - unsigned int flags /* de-interlacing flags */ -); - - VAStatus vaPutSurface ( VADisplay dpy, VASurfaceID surface, |