Mercurial > libavcodec.hg
comparison h263dec.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 | b0953f642148 |
children | e308e12ac596 |
comparison
equal
deleted
inserted
replaced
3806:e1986d9ddc2d | 3807:6a40092eb9e6 |
---|---|
691 return get_consumed_bytes(s, buf_size); | 691 return get_consumed_bytes(s, buf_size); |
692 else | 692 else |
693 s->next_p_frame_damaged=0; | 693 s->next_p_frame_damaged=0; |
694 } | 694 } |
695 | 695 |
696 if((s->avctx->flags2 & CODEC_FLAG2_FAST) && s->pict_type==B_TYPE){ | |
697 s->me.qpel_put= s->dsp.put_2tap_qpel_pixels_tab; | |
698 s->me.qpel_avg= s->dsp.avg_2tap_qpel_pixels_tab; | |
699 }else if((!s->no_rounding) || s->pict_type==B_TYPE){ | |
700 s->me.qpel_put= s->dsp.put_no_rnd_qpel_pixels_tab; | |
701 s->me.qpel_avg= s->dsp.avg_qpel_pixels_tab; | |
702 }else{ | |
703 s->me.qpel_put= s->dsp.put_qpel_pixels_tab; | |
704 s->me.qpel_avg= s->dsp.avg_qpel_pixels_tab; | |
705 } | |
706 | |
696 if(MPV_frame_start(s, avctx) < 0) | 707 if(MPV_frame_start(s, avctx) < 0) |
697 return -1; | 708 return -1; |
698 | 709 |
699 #ifdef DEBUG | 710 #ifdef DEBUG |
700 av_log(avctx, AV_LOG_DEBUG, "qscale=%d\n", s->qscale); | 711 av_log(avctx, AV_LOG_DEBUG, "qscale=%d\n", s->qscale); |