Mercurial > libavcodec.hg
diff mpegvideo.c @ 3807:6a40092eb9e6 libavcodec
approximate qpel functions: sacrifice some quality for some decoding speed. enabled on B-frames with -lavdopts fast.
author | lorenm |
---|---|
date | Sun, 01 Oct 2006 21:25:17 +0000 |
parents | 6741c0e88310 |
children | a31f865dd68d |
line wrap: on
line diff
--- a/mpegvideo.c Sun Oct 01 18:19:49 2006 +0000 +++ b/mpegvideo.c Sun Oct 01 21:25:17 2006 +0000 @@ -3944,17 +3944,16 @@ MPV_motion_lowres(s, dest_y, dest_cb, dest_cr, 1, s->next_picture.data, op_pix); } }else{ + op_qpix= s->me.qpel_put; if ((!s->no_rounding) || s->pict_type==B_TYPE){ op_pix = s->dsp.put_pixels_tab; - op_qpix= s->dsp.put_qpel_pixels_tab; }else{ op_pix = s->dsp.put_no_rnd_pixels_tab; - op_qpix= s->dsp.put_no_rnd_qpel_pixels_tab; } if (s->mv_dir & MV_DIR_FORWARD) { MPV_motion(s, dest_y, dest_cb, dest_cr, 0, s->last_picture.data, op_pix, op_qpix); op_pix = s->dsp.avg_pixels_tab; - op_qpix= s->dsp.avg_qpel_pixels_tab; + op_qpix= s->me.qpel_avg; } if (s->mv_dir & MV_DIR_BACKWARD) { MPV_motion(s, dest_y, dest_cb, dest_cr, 1, s->next_picture.data, op_pix, op_qpix);