]> git.sesse.net Git - fjl/blobdiff - idct.h
Commit initial reference implementation of IDCT.
[fjl] / idct.h
diff --git a/idct.h b/idct.h
new file mode 100644 (file)
index 0000000..ec41993
--- /dev/null
+++ b/idct.h
@@ -0,0 +1,14 @@
+#ifndef _IDCT_H
+#define _IDCT_H
+
+#include <stdint.h>
+
+#define DCTSIZE 8
+#define DCTSIZE2 64
+
+typedef void (idct_func_t)(const int16_t*, const uint32_t*, uint8_t*);
+
+// Non-factorized reference version (section A.3.3 of the JPEG standard).
+void idct_reference(const int16_t* input, const uint32_t* quant_table, uint8_t* output);
+
+#endif /* !defined(_IDCT_H) */