diff dsputil.c @ 6407:7f9e2b5893fc libavcodec

floating point AAN IDCT
author michael
date Tue, 26 Feb 2008 14:59:11 +0000
parents 922774d1fb9c
children 5154ab444372
line wrap: on
line diff
--- a/dsputil.c	Tue Feb 26 10:21:33 2008 +0000
+++ b/dsputil.c	Tue Feb 26 14:59:11 2008 +0000
@@ -32,6 +32,7 @@
 #include "mpegvideo.h"
 #include "simple_idct.h"
 #include "faandct.h"
+#include "faanidct.h"
 #include "h263.h"
 #include "snow.h"
 
@@ -4046,6 +4047,11 @@
             c->idct_add= ff_wmv2_idct_add_c;
             c->idct    = ff_wmv2_idct_c;
             c->idct_permutation_type= FF_NO_IDCT_PERM;
+        }else if(avctx->idct_algo==FF_IDCT_FAAN){
+            c->idct_put= ff_faanidct_put;
+            c->idct_add= ff_faanidct_add;
+            c->idct    = ff_faanidct;
+            c->idct_permutation_type= FF_NO_IDCT_PERM;
         }else{ //accurate/default
             c->idct_put= ff_simple_idct_put;
             c->idct_add= ff_simple_idct_add;