summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-01-10 14:40:04 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-01-10 14:40:04 +0800
commitcff1adedd3c9ee5348c7b992d50f87569625f142 (patch)
treeffd66d6784bc142549d45886ae2546557632f606
parent9c371669b09d9f61680d0c33d0976c220a195c1f (diff)
Remove dependency on X11/Xlib.h
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--dummy_drv_video/dummy_drv_video.c2
-rw-r--r--va/va.c3
-rw-r--r--va/va_backend.h3
3 files changed, 4 insertions, 4 deletions
diff --git a/dummy_drv_video/dummy_drv_video.c b/dummy_drv_video/dummy_drv_video.c
index 310fb20..a6e76b9 100644
--- a/dummy_drv_video/dummy_drv_video.c
+++ b/dummy_drv_video/dummy_drv_video.c
@@ -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
--- 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
diff --git a/va/va_backend.h b/va/va_backend.h
index cddf759..47ca719 100644
--- a/va/va_backend.h
+++ b/va/va_backend.h
@@ -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;