• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revisioncff1adedd3c9ee5348c7b992d50f87569625f142 (tree)
Zeit2012-01-10 15:40:04
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

Remove dependency on X11/Xlib.h

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>

Ändern Zusammenfassung

Diff

--- a/dummy_drv_video/dummy_drv_video.c
+++ b/dummy_drv_video/dummy_drv_video.c
@@ -1056,7 +1056,7 @@ VAStatus dummy_PutSurface(
10561056 )
10571057 {
10581058 /* TODO */
1059- Drawable drawable = (Drawable)draw;
1059+ void *drawable = (void *)draw;
10601060
10611061 (void)drawable;
10621062
--- a/va/va.c
+++ b/va/va.c
@@ -47,6 +47,9 @@
4747 #define CHECK_MAXIMUM(s, ctx, var) if (!va_checkMaximum(ctx->max_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN;
4848 #define CHECK_STRING(s, ctx, var) if (!va_checkString(ctx->str_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN;
4949
50+#define Bool int
51+#define True 1
52+#define False 0
5053
5154 /*
5255 * read a config "env" for libva.conf or from environment setting
--- a/va/va_backend.h
+++ b/va/va_backend.h
@@ -30,9 +30,6 @@
3030 #define _VA_BACKEND_H_
3131
3232 #include <va/va.h>
33-#ifndef ANDROID
34-#include <X11/Xlib.h>
35-#endif
3633 #include <linux/videodev2.h>
3734
3835 typedef struct VADriverContext *VADriverContextP;