diff dsputil.c @ 1557:5d53c03186a1 libavcodec

floating point AAN DCT
author michael
date Wed, 22 Oct 2003 18:26:38 +0000
parents 8ffd0c00e6df
children e08df4d22d27
line wrap: on
line diff
--- a/dsputil.c	Wed Oct 22 15:36:46 2003 +0000
+++ b/dsputil.c	Wed Oct 22 18:26:38 2003 +0000
@@ -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 @@
 #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