OSDN Git Service

Remove dependency on X11/Xlib.h
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 10 Jan 2012 06:40:04 +0000 (14:40 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 10 Jan 2012 06:40:04 +0000 (14:40 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
dummy_drv_video/dummy_drv_video.c
va/va.c
va/va_backend.h

index 310fb20..a6e76b9 100644 (file)
@@ -1056,7 +1056,7 @@ VAStatus dummy_PutSurface(
        )
 {
     /* TODO */
-    Drawable drawable = (Drawable)draw;
+    void *drawable = (void *)draw;
 
     (void)drawable;
 
diff --git a/va/va.c b/va/va.c
index c64d2d7..0f60c50 100644 (file)
--- a/va/va.c
+++ b/va/va.c
@@ -47,6 +47,9 @@
 #define CHECK_MAXIMUM(s, ctx, var) if (!va_checkMaximum(ctx->max_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN;
 #define CHECK_STRING(s, ctx, var) if (!va_checkString(ctx->str_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN;
 
+#define Bool int
+#define True 1
+#define False 0
 
 /*
  * read a config "env" for libva.conf or from environment setting
index cddf759..47ca719 100644 (file)
@@ -30,9 +30,6 @@
 #define _VA_BACKEND_H_
 
 #include <va/va.h>
-#ifndef ANDROID
-#include <X11/Xlib.h>
-#endif
 #include <linux/videodev2.h>
 
 typedef struct VADriverContext *VADriverContextP;