summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-10-22 18:26:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-10-22 18:26:38 +0000
commit65e4c8c919c63b947b157bdb8f141685b6553fba (patch)
tree31e406da0e96c9e9547cb153907a9a2e35bdc658 /libavcodec/dsputil.c
parent9d9e31722ad6dda86da0ccb7eb72004c99057274 (diff)
floating point AAN DCT
Originally committed as revision 2415 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 270424706a..fb98f21c1f 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -28,7 +28,7 @@
#include "dsputil.h"
#include "mpegvideo.h"
#include "simple_idct.h"
-
+#include "faandct.h"
uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
uint32_t squareTbl[512];
@@ -2871,6 +2871,8 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx)
#ifdef CONFIG_ENCODERS
if(avctx->dct_algo==FF_DCT_FASTINT)
c->fdct = fdct_ifast;
+ else if(avctx->dct_algo==FF_DCT_FAAN)
+ c->fdct = ff_faandct;
else
c->fdct = ff_jpeg_fdct_islow; //slow/accurate/default
#endif //CONFIG_ENCODERS