diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2005-05-16 20:01:18 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2005-05-16 20:01:18 (GMT) |
commit | 4ced72dcdb3e5e98e1407d2f85c3fcaace6a2d36 (patch) | |
tree | 30d8d849f51c45b16a3bb54065546c8ed8c3b216 /include | |
parent | 97083487adc637b829ea7fe38c685c17b8f08523 (diff) | |
download | 5kk53-4ced72dcdb3e5e98e1407d2f85c3fcaace6a2d36.zip 5kk53-4ced72dcdb3e5e98e1407d2f85c3fcaace6a2d36.tar.gz 5kk53-4ced72dcdb3e5e98e1407d2f85c3fcaace6a2d36.tar.bz2 |
update for the working stuff
Diffstat (limited to 'include')
-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); |