summaryrefslogtreecommitdiffstats
path: root/baseline/source/cjpeg_wrbmp/jmorecfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'baseline/source/cjpeg_wrbmp/jmorecfg.h')
-rw-r--r--baseline/source/cjpeg_wrbmp/jmorecfg.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/baseline/source/cjpeg_wrbmp/jmorecfg.h b/baseline/source/cjpeg_wrbmp/jmorecfg.h
new file mode 100644
index 0000000..84ee16a
--- /dev/null
+++ b/baseline/source/cjpeg_wrbmp/jmorecfg.h
@@ -0,0 +1,95 @@
1/*
2
3 This program is part of the TACLeBench benchmark suite.
4 Version V 1.x
5
6 Name: jmorecfg.h
7
8 Author: Thomas G. Lane.
9
10 This file is part of the Independent JPEG Group's software.
11 For conditions of distribution and use, see the accompanying README file.
12
13 This file contains additional configuration options that customize the
14 JPEG software for special applications or support machine-dependent
15 optimizations. Most users will not need to touch this file.
16
17 Source: Independent JPEG Group's software
18
19 Changes: no major functional changes
20
21 License: See the accompanying README file
22*/
23
24#ifndef JMORECFG_H
25#define JMORECFG_H
26
27
28#define CJPEG_WRBMP_GETJSAMPLE(value) ((int) (value))
29
30typedef unsigned char CJPEG_WRBMP_JSAMPLE;
31typedef short CJPEG_WRBMP_JCOEF;
32typedef unsigned char CJPEG_WRBMP_JOCTET;
33
34/* These typedefs are used for various table entries and so forth.
35 They must be at least as wide as specified; but making them too big
36 won't cost a huge amount of memory, so we don't provide special
37 extraction code like we did for JSAMPLE. (In other words, these
38 typedefs live at a different point on the speed/space tradeoff curve.)
39*/
40
41/* UINT8 must hold at least the values 0..255. */
42
43typedef unsigned char CJPEG_WRBMP_UINT8;
44
45
46/* UINT16 must hold at least the values 0..65535. */
47
48typedef unsigned short CJPEG_WRBMP_UINT16;
49
50
51/* INT16 must hold at least the values -32768..32767. */
52
53#ifndef XMD_H /* X11/xmd.h correctly defines INT16 */
54typedef short INT16;
55#endif
56
57/* INT32 must hold at least signed 32-bit values. */
58
59#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
60typedef long INT32;
61#endif
62
63typedef unsigned int CJPEG_WRBMP_JDIMENSION;
64
65/* This macro is used to declare a "method", that is, a function pointer.
66 We want to supply prototype parameters if the compiler can cope.
67 Note that the arglist parameter must be parenthesized!
68 Again, you can customize this if you need special linkage keywords.
69*/
70
71#define EXTERN(type) extern type
72
73#ifdef CJPEG_WRBMP_HAVE_PROTOTYPES
74#define CJPEG_WRBMP_JMETHOD(type,methodname,arglist) type (*methodname) arglist
75#else
76#define CJPEG_WRBMP_JMETHOD(type,methodname,arglist) type (*methodname) ()
77#endif
78
79
80/* Here is the pseudo-keyword for declaring pointers that must be "far"
81 on 80x86 machines. Most of the specialized coding for 80x86 is handled
82 by just saying "FAR *" where such a pointer is needed. In a few places
83 explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol.
84*/
85
86#ifdef CJPEG_JPEG6B_WRBMP_NEED_FAR_POINTERS
87#define CJPEG_WRBMP_FAR far
88#else
89#define CJPEG_WRBMP_FAR
90#endif
91
92#ifndef CJPEG_JPEG6B_WRBMP_HAVE_BOOLEAN
93typedef int cjpeg_wrbmp_boolean;
94#endif
95#endif