20 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
* |
* |
23 |
* $Id: idct.c,v 1.7 2004-03-22 22:36:23 edgomez Exp $ |
* $Id: idct.c,v 1.8 2004-08-22 13:16:12 edgomez Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
85 |
#define W6 1108 /* 2048*sqrt(2)*cos(6*pi/16) */ |
#define W6 1108 /* 2048*sqrt(2)*cos(6*pi/16) */ |
86 |
#define W7 565 /* 2048*sqrt(2)*cos(7*pi/16) */ |
#define W7 565 /* 2048*sqrt(2)*cos(7*pi/16) */ |
87 |
|
|
88 |
/* private data */ |
/* private data |
89 |
|
* Initialized by idct_int32_init so it's mostly RO data, |
90 |
|
* doesn't hurt thread safety */ |
91 |
static short iclip[1024]; /* clipping table */ |
static short iclip[1024]; /* clipping table */ |
92 |
static short *iclp; |
static short *iclp; |
93 |
|
|
249 |
idctcol(block+i); |
idctcol(block+i); |
250 |
#endif |
#endif |
251 |
|
|
252 |
static short *blk; |
short *blk; |
253 |
static long i; |
long i; |
254 |
static long X0, X1, X2, X3, X4, X5, X6, X7, X8; |
long X0, X1, X2, X3, X4, X5, X6, X7, X8; |
255 |
|
|
256 |
|
|
257 |
for (i = 0; i < 8; i++) /* idct rows */ |
for (i = 0; i < 8; i++) /* idct rows */ |