summaryrefslogtreecommitdiffstats
path: root/include/dct.h
blob: d202de5261d1af79d87f9f2057efc8698a7bb6d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#define CONST_BITS  8
#define DCTSIZE 8
#define DCTSIZE_BLOCK (DCTSIZE * DCTSIZE)

#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);