aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-29 17:05:12 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-29 17:05:51 +0100
commitfbafd64acce4a2a0aa6a5b392524a99f397e96a8 (patch)
treed75aec398f51fa4721cf5bcc9175a1e6e17676c5 /libavcodec
parentcfe282ec80dc03667418c601283134eec25f17cf (diff)
parent54b2ce7418c0e1467c9e67274e55e1bd86189e63 (diff)
downloadffmpeg-fbafd64acce4a2a0aa6a5b392524a99f397e96a8.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: mpeg: Drop unused parameters from ff_draw_horiz_band() Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c10
-rw-r--r--libavcodec/mpegvideo.h7
-rw-r--r--libavcodec/svq3.c5
3 files changed, 10 insertions, 12 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 39f40cc0ee..ebaeedd08b 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -3022,10 +3022,9 @@ void ff_MPV_decode_mb(MpegEncContext *s, int16_t block[12][64]){
/**
* @param h is the normal height, this will be reduced automatically if needed for the last row
*/
-void ff_draw_horiz_band(AVCodecContext *avctx, DSPContext *dsp, Picture *cur,
+void ff_draw_horiz_band(AVCodecContext *avctx, Picture *cur,
Picture *last, int y, int h, int picture_structure,
- int first_field, int low_delay,
- int v_edge_pos, int h_edge_pos)
+ int first_field, int low_delay)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
int vshift = desc->log2_chroma_h;
@@ -3074,10 +3073,9 @@ void ff_draw_horiz_band(AVCodecContext *avctx, DSPContext *dsp, Picture *cur,
void ff_mpeg_draw_horiz_band(MpegEncContext *s, int y, int h)
{
- ff_draw_horiz_band(s->avctx, &s->dsp, s->current_picture_ptr,
+ ff_draw_horiz_band(s->avctx, s->current_picture_ptr,
s->last_picture_ptr, y, h, s->picture_structure,
- s->first_field, s->low_delay,
- s->v_edge_pos, s->h_edge_pos);
+ s->first_field, s->low_delay);
}
void ff_init_block_index(MpegEncContext *s){ //FIXME maybe rename
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 7ecb97eae4..47a58f74b4 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -807,10 +807,9 @@ void ff_MPV_common_init_axp(MpegEncContext *s);
void ff_MPV_common_init_arm(MpegEncContext *s);
void ff_MPV_common_init_ppc(MpegEncContext *s);
void ff_clean_intra_table_entries(MpegEncContext *s);
-void ff_draw_horiz_band(AVCodecContext *avctx, DSPContext *dsp, Picture *cur,
- Picture *last, int y, int h, int picture_structure,
- int first_field, int low_delay,
- int v_edge_pos, int h_edge_pos);
+void ff_draw_horiz_band(AVCodecContext *avctx, Picture *cur, Picture *last,
+ int y, int h, int picture_structure, int first_field,
+ int low_delay);
void ff_mpeg_draw_horiz_band(MpegEncContext *s, int y, int h);
void ff_mpeg_flush(AVCodecContext *avctx);
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 75dc3d5b9a..f41fa599c3 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -1298,9 +1298,10 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
(h->pict_type == AV_PICTURE_TYPE_P && mb_type < 8) ? (mb_type - 1) : -1;
}
- ff_draw_horiz_band(avctx, NULL, s->cur_pic, s->last_pic->f.data[0] ? s->last_pic : NULL,
+ ff_draw_horiz_band(avctx, s->cur_pic,
+ s->last_pic->f.data[0] ? s->last_pic : NULL,
16 * h->mb_y, 16, h->picture_structure, 0,
- h->low_delay, h->mb_height * 16, h->mb_width * 16);
+ h->low_delay);
}
left = buf_size*8 - get_bits_count(&h->gb);