Mercurial > libavcodec.hg
diff dsputil.c @ 2272:cd43603c46f9 libavcodec
move h264 idct to its own file and call via function pointer in DspContext
allow h264 idct to be used for lowres=1
author | michael |
---|---|
date | Mon, 27 Sep 2004 19:47:17 +0000 |
parents | 12e75af1d44c |
children | 23e7af611c34 |
line wrap: on
line diff
--- a/dsputil.c Mon Sep 27 17:46:07 2004 +0000 +++ b/dsputil.c Mon Sep 27 19:47:17 2004 +0000 @@ -3434,8 +3434,13 @@ #endif //CONFIG_ENCODERS if(avctx->lowres==1){ - c->idct_put= ff_jref_idct4_put; - c->idct_add= ff_jref_idct4_add; + if(avctx->idct_algo==FF_IDCT_INT || avctx->idct_algo==FF_IDCT_AUTO){ + c->idct_put= ff_jref_idct4_put; + c->idct_add= ff_jref_idct4_add; + }else{ + c->idct_put= ff_h264_lowres_idct_put_c; + c->idct_add= ff_h264_lowres_idct_add_c; + } c->idct = j_rev_dct4; c->idct_permutation_type= FF_NO_IDCT_PERM; }else if(avctx->lowres==2){ @@ -3462,6 +3467,8 @@ } } + c->h264_idct_add= ff_h264_idct_add_c; + /* VP3 DSP support */ c->vp3_dsp_init = vp3_dsp_init_c; c->vp3_idct = vp3_idct_c;