]> git.sesse.net Git - fjl/blobdiff - choice.c
Add an x86 optimized version of extend().
[fjl] / choice.c
index 7ddcd13245e8dee440026ae66e7e657db1b85a00..9d7d45140cb31fae9a957147ce822ab2c5c47887 100644 (file)
--- a/choice.c
+++ b/choice.c
@@ -1,9 +1,18 @@
 #include "choice.h"
+#include "idct_float.h"
 
 unstuff_func_t* unstuff_choice = NULL;
+idct_alloc_t* idct_choice_alloc = NULL;
+idct_free_t* idct_choice_free = NULL;
+idct_func_t* idct_choice = NULL;
 
 void init_choices()
 {
        // TODO: Pick the SSE4.1 version if applicable.
        unstuff_choice = unstuff_fast;
+
+       // TODO: Add vectorized IDCTs.
+       idct_choice_alloc = idct_float_alloc;
+       idct_choice_free = idct_float_free;
+       idct_choice = idct_float;
 }