diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-05-14 12:32:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-05-14 12:32:17 +0000 |
commit | b82cdc727855fc11f0110c46c39eadd00009ebc0 (patch) | |
tree | 7a442f3fcd7d5e4f7e9c4a2c1e64f3e8b451df25 /libavcodec/sh4 | |
parent | 0c6bd2ea0a4de2d575d35e38149ec16ae31d3f49 (diff) | |
download | ffmpeg-b82cdc727855fc11f0110c46c39eadd00009ebc0.tar.gz |
make sh4 IDCT optional, so the user can choose
Originally committed as revision 1878 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/sh4')
-rw-r--r-- | libavcodec/sh4/dsputil_sh4.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/sh4/dsputil_sh4.c b/libavcodec/sh4/dsputil_sh4.c index 6cf5e72eaf..8ba5c64d27 100644 --- a/libavcodec/sh4/dsputil_sh4.c +++ b/libavcodec/sh4/dsputil_sh4.c @@ -105,10 +105,13 @@ extern void dsputil_init_align(DSPContext* c, AVCodecContext *avctx); void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx) { + const int idct_algo= avctx->idct_algo; dsputil_init_align(c,avctx); c->clear_blocks = clear_blocks_sh4; - c->idct_put = idct_put; - c->idct_add = idct_add; - c->idct_permutation_type= FF_NO_IDCT_PERM; //FF_SIMPLE_IDCT_PERM; //FF_LIBMPEG2_IDCT_PERM; + if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_SH4){ + c->idct_put = idct_put; + c->idct_add = idct_add; + c->idct_permutation_type= FF_NO_IDCT_PERM; //FF_SIMPLE_IDCT_PERM; //FF_LIBMPEG2_IDCT_PERM; + } } |