]> git.sesse.net Git - fjl/blobdiff - idct_imprecise_int.h
Add a stupid integerization of the AA&N IDCT -- 30% faster or so, mostly
[fjl] / idct_imprecise_int.h
diff --git a/idct_imprecise_int.h b/idct_imprecise_int.h
new file mode 100644 (file)
index 0000000..f103270
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _IDCT_IMPRECISE_INT_H
+#define _IDCT_IMPRECISE_INT_H
+
+#include "idct.h"
+
+// Straight-forward, stupid integerization of idct_float. (There are quite
+// possibly better integer IDCTs possible.)
+//
+// NOTE: This routine most likely does not conform to the precision and/or
+// range demands set forth by the JPEG standard. Caveat emptor.
+void* idct_imprecise_int_alloc(const uint32_t* quant_table);
+void idct_imprecise_int_free(void* userdata);
+void idct_imprecise_int(const int16_t* input, const void* userdata, uint8_t* output);
+
+#endif /* !defined(_IDCT_IMPRECISE_INT_H) */