Mercurial > libavcodec.hg
diff dsputil.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 | 4d346abd723c |
children | c8c591fe26f8 |
line wrap: on
line diff
--- a/dsputil.c Sun Oct 01 18:19:49 2006 +0000 +++ b/dsputil.c Sun Oct 01 21:25:17 2006 +0000 @@ -4165,6 +4165,9 @@ c->prefetch= just_return; + memset(c->put_2tap_qpel_pixels_tab, 0, sizeof(c->put_2tap_qpel_pixels_tab)); + memset(c->avg_2tap_qpel_pixels_tab, 0, sizeof(c->avg_2tap_qpel_pixels_tab)); + #ifdef HAVE_MMX dsputil_init_mmx(c, avctx); #endif @@ -4193,6 +4196,13 @@ dsputil_init_bfin(c,avctx); #endif + for(i=0; i<64; i++){ + if(!c->put_2tap_qpel_pixels_tab[0][i]) + c->put_2tap_qpel_pixels_tab[0][i]= c->put_h264_qpel_pixels_tab[0][i]; + if(!c->avg_2tap_qpel_pixels_tab[0][i]) + c->avg_2tap_qpel_pixels_tab[0][i]= c->avg_h264_qpel_pixels_tab[0][i]; + } + switch(c->idct_permutation_type){ case FF_NO_IDCT_PERM: for(i=0; i<64; i++)