OSDN Git Service

Fix drivers build.
[android-x86/hardware-intel-common-libva.git] / dummy_drv_video / dummy_drv_video.h
index 81a9a44..cd849c5 100644 (file)
@@ -25,7 +25,7 @@
 #ifndef _DUMMY_DRV_VIDEO_H_
 #define _DUMMY_DRV_VIDEO_H_
 
-#include "va.h"
+#include <va/va.h>
 #include "object_heap.h"
 
 #define DUMMY_MAX_PROFILES                     11
@@ -34,6 +34,7 @@
 #define DUMMY_MAX_IMAGE_FORMATS                        10
 #define DUMMY_MAX_SUBPIC_FORMATS               4
 #define DUMMY_MAX_DISPLAY_ATTRIBUTES           4
+#define DUMMY_STR_VENDOR                       "Dummy Driver 1.0"
 
 struct dummy_driver_data {
     struct object_heap config_heap;
@@ -52,14 +53,19 @@ struct object_config {
 
 struct object_context {
     struct object_base base;
-    VAContext *context;
-    VAConfigID config;
+    VAContextID context_id;
+    VAConfigID config_id;
     VASurfaceID current_render_target;
+    int picture_width;
+    int picture_height;
+    int num_render_targets;
+    int flags;
+    VASurfaceID *render_targets;
 };
 
 struct object_surface {
     struct object_base base;
-    VASurface *surface;
+    VASurfaceID surface_id;
 };
 
 struct object_buffer {