From 1d0feb5d1ac04d187b335f0e8d411c9f40b3a885 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 3 Feb 2013 14:26:34 +0100 Subject: mpegvideo: split ff_draw_horiz_band(). Split out dependency on MpegEncContext. --- libavcodec/vdpau.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavcodec/vdpau.c') diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 851c7cb9f3..3b773868e9 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -59,7 +59,7 @@ int ff_vdpau_common_end_frame(AVCodecContext *avctx) hwctx->render(hwctx->decoder, surf, (void *)&hwctx->info, hwctx->bitstream_buffers_used, hwctx->bitstream_buffers); - ff_draw_horiz_band(s, 0, s->avctx->height); + ff_mpeg_draw_horiz_band(s, 0, s->avctx->height); hwctx->bitstream_buffers_used = 0; } return 0; @@ -235,7 +235,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) memcpy(render->info.h264.scaling_lists_8x8[0], h->pps.scaling_matrix8[0], sizeof(render->info.h264.scaling_lists_8x8[0])); memcpy(render->info.h264.scaling_lists_8x8[1], h->pps.scaling_matrix8[3], sizeof(render->info.h264.scaling_lists_8x8[0])); - ff_draw_horiz_band(s, 0, s->avctx->height); + ff_mpeg_draw_horiz_band(s, 0, s->avctx->height); render->bitstream_buffers_used = 0; } @@ -292,7 +292,7 @@ void ff_vdpau_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf, render->info.mpeg.slice_count = slice_count; if (slice_count) - ff_draw_horiz_band(s, 0, s->avctx->height); + ff_mpeg_draw_horiz_band(s, 0, s->avctx->height); render->bitstream_buffers_used = 0; } @@ -361,7 +361,7 @@ void ff_vdpau_vc1_decode_picture(MpegEncContext *s, const uint8_t *buf, render->info.vc1.slice_count = 1; - ff_draw_horiz_band(s, 0, s->avctx->height); + ff_mpeg_draw_horiz_band(s, 0, s->avctx->height); render->bitstream_buffers_used = 0; } @@ -415,7 +415,7 @@ void ff_vdpau_mpeg4_decode_picture(MpegEncContext *s, const uint8_t *buf, ff_vdpau_add_data_chunk(s, buf, buf_size); - ff_draw_horiz_band(s, 0, s->avctx->height); + ff_mpeg_draw_horiz_band(s, 0, s->avctx->height); render->bitstream_buffers_used = 0; } -- cgit v1.2.3