diff options
-rw-r--r-- | include/dct.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/dct.h b/include/dct.h index d202de5..22d3c36 100644 --- a/include/dct.h +++ b/include/dct.h @@ -1,11 +1,5 @@ -#define CONST_BITS 8 -#define DCTSIZE 8 -#define DCTSIZE_BLOCK (DCTSIZE * DCTSIZE) +typedef int DCTELEM; /* 16 or 32 bits is fine */ -#define RIGHT_SHIFT(x,shft) ((x) >> (shft)) -#define DESCALE(x,n) RIGHT_SHIFT((x) + (1 << ((n)-1)), n) - -#define MULTIPLY(var,constant) (DESCALE((var) * (constant), CONST_BITS)) - -void fdct(int *data); +void jpeg_fdct_ifast (DCTELEM * data); +void IDCT(const int input[64], int *output); |