Centralize buffer-related ressources in surface object and avoid dynamic indexes

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
Paul Kocialkowski
2018-04-25 10:44:44 +02:00
parent 27c8a97901
commit f872e345d0
11 changed files with 115 additions and 119 deletions
-6
View File
@@ -30,9 +30,6 @@
#include "object_heap.h"
#define INPUT_BUFFER_MAX_SIZE 131072
#define INPUT_BUFFERS_NB 6
#define CONTEXT(id) ((struct object_context *) object_heap_lookup(&driver_data->context_heap, id))
#define CONTEXT_ID_OFFSET 0x02000000
@@ -47,9 +44,6 @@ struct object_context {
int picture_width;
int picture_height;
int flags;
struct v4l2_ctrl_mpeg2_frame_hdr mpeg2_frame_hdr;
uint32_t num_rendered_surfaces;
};
VAStatus SunxiCedrusCreateContext(VADriverContextP context,