context: Use object context structure directly instead of abstract type

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
Paul Kocialkowski
2018-04-23 10:04:58 +02:00
parent 5c26862913
commit 6a06b4570b
8 changed files with 17 additions and 19 deletions
+1 -3
View File
@@ -36,7 +36,7 @@
#define INPUT_BUFFER_MAX_SIZE 131072
#define INPUT_BUFFERS_NB 6
#define CONTEXT(id) ((object_context_p) object_heap_lookup(&driver_data->context_heap, id))
#define CONTEXT(id) ((struct object_context *) object_heap_lookup(&driver_data->context_heap, id))
#define CONTEXT_ID_OFFSET 0x02000000
struct object_context {
@@ -55,8 +55,6 @@ struct object_context {
struct v4l2_ctrl_mpeg4_frame_hdr mpeg4_frame_hdr;
};
typedef struct object_context *object_context_p;
VAStatus sunxi_cedrus_CreateContext(VADriverContextP ctx, VAConfigID config_id,
int picture_width, int picture_height, int flag,
VASurfaceID *render_targets, int num_render_targets,