summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@gmail.com>2010-10-26 11:19:08 -0700
committerAustin Yuan <shengquan.yuan@gmail.com>2010-10-26 11:19:08 -0700
commitf6eef816a99fa8b69a22f5763cd9b95588bc90dc (patch)
treefbedd426c24a06083ffc16d9d49526e4fe46fe1c
parentc37a8b020e661032b4c89b6fda937e72c1097cd0 (diff)
downloadlibva-f6eef816a99fa8b69a22f5763cd9b95588bc90dc.tar.gz
fix build issue on Android
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
-rw-r--r--va/android/va_android.cpp42
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,