From 4ced72dcdb3e5e98e1407d2f85c3fcaace6a2d36 Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Mon, 16 May 2005 20:01:18 +0000 Subject: update for the working stuff --- include/dct.h | 12 +++--------- 1 file 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); -- cgit v0.12