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
-5
View File
@@ -47,13 +47,8 @@ struct sunxi_cedrus_driver_data {
struct object_heap surface_heap;
struct object_heap buffer_heap;
struct object_heap image_heap;
char *luma_bufs[VIDEO_MAX_FRAME];
char *chroma_bufs[VIDEO_MAX_FRAME];
unsigned int num_dst_bufs;
int video_fd;
int media_fd;
int request_fds[INPUT_BUFFERS_NB];
int slice_offset[INPUT_BUFFERS_NB];
};
VAStatus VA_DRIVER_INIT_FUNC(VADriverContextP context);