mpeg2: Rework helper functions to a more flexible interface

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
Paul Kocialkowski
2018-04-24 16:10:35 +02:00
parent c7f0d7684a
commit 1bf08f9656
3 changed files with 64 additions and 67 deletions
+5 -7
View File
@@ -33,12 +33,10 @@
#include "surface.h"
VAStatus sunxi_cedrus_render_mpeg2_slice_data(VADriverContextP ctx,
struct object_context *obj_context, struct object_surface *obj_surface,
struct object_buffer *obj_buffer);
VAStatus sunxi_cedrus_render_mpeg2_picture_parameter(VADriverContextP ctx,
struct object_context *obj_context, struct object_surface *obj_surface,
struct object_buffer *obj_buffer);
int mpeg2_fill_picture_parameters(struct object_context *context_object,
struct object_surface *surface_object,
VAPictureParameterBufferMPEG2 *parameters);
int mpeg2_fill_slice_data(struct object_context *context_object,
struct object_surface *surface_object, void *data, unsigned int size);
#endif