surface: Use object surface 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:06:11 +02:00
parent 6a06b4570b
commit 97950176ad
8 changed files with 25 additions and 27 deletions
+4 -4
View File
@@ -40,7 +40,7 @@
*/
VAStatus sunxi_cedrus_render_mpeg2_slice_data(VADriverContextP ctx,
struct object_context *obj_context, object_surface_p obj_surface,
struct object_context *obj_context, struct object_surface *obj_surface,
struct object_buffer *obj_buffer)
{
INIT_DRIVER_DATA
@@ -53,7 +53,7 @@ VAStatus sunxi_cedrus_render_mpeg2_slice_data(VADriverContextP ctx,
}
VAStatus sunxi_cedrus_render_mpeg2_picture_parameter(VADriverContextP ctx,
struct object_context *obj_context, object_surface_p obj_surface,
struct object_context *obj_context, struct object_surface *obj_surface,
struct object_buffer *obj_buffer)
{
INIT_DRIVER_DATA
@@ -80,13 +80,13 @@ VAStatus sunxi_cedrus_render_mpeg2_picture_parameter(VADriverContextP ctx,
obj_context->mpeg2_frame_hdr.intra_vlc_format = pic_param->picture_coding_extension.bits.intra_vlc_format;
obj_context->mpeg2_frame_hdr.alternate_scan = pic_param->picture_coding_extension.bits.alternate_scan;
object_surface_p fwd_surface = SURFACE(pic_param->forward_reference_picture);
struct object_surface *fwd_surface = SURFACE(pic_param->forward_reference_picture);
if(fwd_surface)
obj_context->mpeg2_frame_hdr.forward_index = fwd_surface->output_buf_index;
else
obj_context->mpeg2_frame_hdr.forward_index = obj_surface->output_buf_index;
object_surface_p bwd_surface = SURFACE(pic_param->backward_reference_picture);
struct object_surface *bwd_surface = SURFACE(pic_param->backward_reference_picture);
if(bwd_surface)
obj_context->mpeg2_frame_hdr.backward_index = bwd_surface->output_buf_index;
else