comparison dct-test.c @ 980:0c32f81b42b2 libavcodec

suppressed getopt.h
author bellard
date Tue, 07 Jan 2003 23:49:40 +0000
parents ff90043f4a2d
children b32afefe7d33
comparison
equal deleted inserted replaced
979:979f3cbd08a2 980:0c32f81b42b2
4 #include <stdlib.h> 4 #include <stdlib.h>
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <string.h> 6 #include <string.h>
7 #include <sys/time.h> 7 #include <sys/time.h>
8 #include <unistd.h> 8 #include <unistd.h>
9 #include <getopt.h>
10 9
11 #include "dsputil.h" 10 #include "dsputil.h"
12 11
13 #include "i386/mmx.h" 12 #include "i386/mmx.h"
14 #include "simple_idct.h" 13 #include "simple_idct.h"
14
15 #ifndef MAX
16 #define MAX(a, b) (((a) > (b)) ? (a) : (b))
17 #endif
15 18
16 /* reference fdct/idct */ 19 /* reference fdct/idct */
17 extern void fdct(DCTELEM *block); 20 extern void fdct(DCTELEM *block);
18 extern void idct(DCTELEM *block); 21 extern void idct(DCTELEM *block);
19 extern void init_fdct(); 22 extern void init_fdct();
21 extern void j_rev_dct(DCTELEM *data); 24 extern void j_rev_dct(DCTELEM *data);
22 extern void ff_mmx_idct(DCTELEM *data); 25 extern void ff_mmx_idct(DCTELEM *data);
23 extern void ff_mmxext_idct(DCTELEM *data); 26 extern void ff_mmxext_idct(DCTELEM *data);
24 27
25 extern void odivx_idct_c (short *block); 28 extern void odivx_idct_c (short *block);
26
27 void (*add_pixels_clamped)(const DCTELEM *block/*align 16*/,
28 UINT8 *pixels/*align 8*/, int line_size);
29
30 void (*put_pixels_clamped)(const DCTELEM *block/*align 16*/,
31 UINT8 *pixels/*align 8*/, int line_size);
32 29
33 #define AANSCALE_BITS 12 30 #define AANSCALE_BITS 12
34 static const unsigned short aanscales[64] = { 31 static const unsigned short aanscales[64] = {
35 /* precomputed values scaled up by 14 bits */ 32 /* precomputed values scaled up by 14 bits */
36 16384, 22725, 21407, 19266, 16384, 12873, 8867, 4520, 33 16384, 22725, 21407, 19266, 16384, 12873, 8867, 4520,