hardware/intel/libva
Revision | cff1adedd3c9ee5348c7b992d50f87569625f142 (tree) |
---|---|
Zeit | 2012-01-10 15:40:04 |
Autor | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
Remove dependency on X11/Xlib.h
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
@@ -1056,7 +1056,7 @@ VAStatus dummy_PutSurface( | ||
1056 | 1056 | ) |
1057 | 1057 | { |
1058 | 1058 | /* TODO */ |
1059 | - Drawable drawable = (Drawable)draw; | |
1059 | + void *drawable = (void *)draw; | |
1060 | 1060 | |
1061 | 1061 | (void)drawable; |
1062 | 1062 |
@@ -47,6 +47,9 @@ | ||
47 | 47 | #define CHECK_MAXIMUM(s, ctx, var) if (!va_checkMaximum(ctx->max_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN; |
48 | 48 | #define CHECK_STRING(s, ctx, var) if (!va_checkString(ctx->str_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN; |
49 | 49 | |
50 | +#define Bool int | |
51 | +#define True 1 | |
52 | +#define False 0 | |
50 | 53 | |
51 | 54 | /* |
52 | 55 | * read a config "env" for libva.conf or from environment setting |
@@ -30,9 +30,6 @@ | ||
30 | 30 | #define _VA_BACKEND_H_ |
31 | 31 | |
32 | 32 | #include <va/va.h> |
33 | -#ifndef ANDROID | |
34 | -#include <X11/Xlib.h> | |
35 | -#endif | |
36 | 33 | #include <linux/videodev2.h> |
37 | 34 | |
38 | 35 | typedef struct VADriverContext *VADriverContextP; |