summaryrefslogtreecommitdiffstats
path: root/all_pairs/source/cjpeg_wrbmp/jerror.h
diff options
context:
space:
mode:
Diffstat (limited to 'all_pairs/source/cjpeg_wrbmp/jerror.h')
-rw-r--r--all_pairs/source/cjpeg_wrbmp/jerror.h203
1 files changed, 203 insertions, 0 deletions
diff --git a/all_pairs/source/cjpeg_wrbmp/jerror.h b/all_pairs/source/cjpeg_wrbmp/jerror.h
new file mode 100644
index 0000000..1dc2798
--- /dev/null
+++ b/all_pairs/source/cjpeg_wrbmp/jerror.h
@@ -0,0 +1,203 @@
1/*
2
3 This program is part of the TACLeBench benchmark suite.
4 Version V 1.x
5
6 Name: jerror.h
7
8 Author: Thomas G. Lane.
9
10 This file defines the error and message codes for the JPEG library.
11 Edit this file to add new codes, or to translate the message strings to
12 some other language.
13 A set of error-reporting macros are defined too. Some applications using
14 the JPEG library may wish to include this file to get the error codes
15 sand/or the macros.
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/*
25 To define the enum list of message codes, include this file without
26 defining macro JMESSAGE. To create a message string table, include it
27 again with a suitable JMESSAGE definition (see jerror.c for an example).
28*/
29#ifndef CJPEG_WRBMP_JMESSAGE
30#ifndef JERROR_H
31/* First time through, define the enum list */
32#define CJPEG_WRBMP_JMAKE_ENUM_LIST
33#else
34/* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
35#define CJPEG_WRBMP_JMESSAGE(code,string)
36#endif /* JERROR_H */
37#endif /* JMESSAGE */
38
39#ifdef CJPEG_WRBMP_JMAKE_ENUM_LIST
40
41typedef enum {
42
43#define CJPEG_WRBMP_JMESSAGE(code,string) code ,
44
45#endif /* JMAKE_ENUM_LIST */
46
47 CJPEG_WRBMP_JMESSAGE( JMSG_NOMESSAGE, "Bogus message code %d" ) /* Must be first entry! */
48
49 /* For maintenance convenience, list is alphabetical by message code name */
50 CJPEG_WRBMP_JMESSAGE( JERR_ARITH_NOTIMPL,
51 "Sorry, there are legal restrictions on arithmetic coding" )
52 CJPEG_WRBMP_JMESSAGE( JERR_BAD_ALIGN_TYPE, "ALIGN_TYPE is wrong, please fix" )
53 CJPEG_WRBMP_JMESSAGE( JERR_BAD_ALLOC_CHUNK, "MAX_ALLOC_CHUNK is wrong, please fix" )
54 CJPEG_WRBMP_JMESSAGE( JERR_BAD_BUFFER_MODE, "Bogus buffer control mode" )
55 CJPEG_WRBMP_JMESSAGE( JERR_BAD_COMPONENT_ID, "Invalid component ID %d in SOS" )
56 CJPEG_WRBMP_JMESSAGE( JERR_BAD_DCT_COEF, "DCT coefficient out of range" )
57 CJPEG_WRBMP_JMESSAGE( JERR_BAD_DCTSIZE, "IDCT output block size %d not supported" )
58 CJPEG_WRBMP_JMESSAGE( JERR_BAD_HUFF_TABLE, "Bogus Huffman table definition" )
59 CJPEG_WRBMP_JMESSAGE( JERR_BAD_IN_COLORSPACE, "Bogus input colorspace" )
60 CJPEG_WRBMP_JMESSAGE( JERR_BAD_J_COLORSPACE, "Bogus JPEG colorspace" )
61 CJPEG_WRBMP_JMESSAGE( JERR_BAD_LENGTH, "Bogus marker length" )
62 CJPEG_WRBMP_JMESSAGE( JERR_BAD_LIB_VERSION,
63 "Wrong JPEG library version: library is %d, caller expects %d" )
64 CJPEG_WRBMP_JMESSAGE( JERR_BAD_MCU_SIZE, "Sampling factors too large for interleaved scan" )
65 CJPEG_WRBMP_JMESSAGE( JERR_BAD_POOL_ID, "Invalid memory pool code %d" )
66 CJPEG_WRBMP_JMESSAGE( JERR_BAD_PRECISION, "Unsupported JPEG data precision %d" )
67 CJPEG_WRBMP_JMESSAGE( JERR_BAD_PROGRESSION,
68 "Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d" )
69 CJPEG_WRBMP_JMESSAGE( JERR_BAD_PROG_SCRIPT,
70 "Invalid progressive parameters at scan script entry %d" )
71 CJPEG_WRBMP_JMESSAGE( JERR_BAD_SAMPLING, "Bogus sampling factors" )
72 CJPEG_WRBMP_JMESSAGE( JERR_BAD_SCAN_SCRIPT, "Invalid scan script at entry %d" )
73 CJPEG_WRBMP_JMESSAGE( JERR_BAD_STATE, "Improper call to JPEG library in state %d" )
74 CJPEG_WRBMP_JMESSAGE( JERR_BAD_STRUCT_SIZE,
75 "JPEG parameter struct mismatch: library thinks size is %u, caller expects %u" )
76 CJPEG_WRBMP_JMESSAGE( JERR_BAD_VIRTUAL_ACCESS, "Bogus virtual array access" )
77 CJPEG_WRBMP_JMESSAGE( JERR_BUFFER_SIZE, "Buffer passed to JPEG library is too small" )
78 CJPEG_WRBMP_JMESSAGE( JERR_CANT_SUSPEND, "Suspension not allowed here" )
79 CJPEG_WRBMP_JMESSAGE( JERR_CCIR601_NOTIMPL, "CCIR601 sampling not implemented yet" )
80 CJPEG_WRBMP_JMESSAGE( JERR_COMPONENT_COUNT, "Too many color components: %d, max %d" )
81 CJPEG_WRBMP_JMESSAGE( JERR_CONVERSION_NOTIMPL, "Unsupported color conversion request" )
82 CJPEG_WRBMP_JMESSAGE( JERR_DAC_INDEX, "Bogus DAC index %d" )
83 CJPEG_WRBMP_JMESSAGE( JERR_DAC_VALUE, "Bogus DAC value 0x%x" )
84 CJPEG_WRBMP_JMESSAGE( JERR_DHT_INDEX, "Bogus DHT index %d" )
85 CJPEG_WRBMP_JMESSAGE( JERR_DQT_INDEX, "Bogus DQT index %d" )
86 CJPEG_WRBMP_JMESSAGE( JERR_EMPTY_IMAGE, "Empty JPEG image (DNL not supported)" )
87 CJPEG_WRBMP_JMESSAGE( JERR_EMS_READ, "Read from EMS failed" )
88 CJPEG_WRBMP_JMESSAGE( JERR_EMS_WRITE, "Write to EMS failed" )
89 CJPEG_WRBMP_JMESSAGE( JERR_EOI_EXPECTED, "Didn't expect more than one scan" )
90 CJPEG_WRBMP_JMESSAGE( JERR_FILE_READ, "Input file read error" )
91 CJPEG_WRBMP_JMESSAGE( JERR_FILE_WRITE, "Output file write error --- out of disk space?" )
92 CJPEG_WRBMP_JMESSAGE( JERR_FRACT_SAMPLE_NOTIMPL, "Fractional sampling not implemented yet" )
93 CJPEG_WRBMP_JMESSAGE( JERR_HUFF_CLEN_OVERFLOW, "Huffman code size table overflow" )
94 CJPEG_WRBMP_JMESSAGE( JERR_HUFF_MISSING_CODE, "Missing Huffman code table entry" )
95 CJPEG_WRBMP_JMESSAGE( JERR_IMAGE_TOO_BIG, "Maximum supported image dimension is %u pixels" )
96 CJPEG_WRBMP_JMESSAGE( JERR_INPUT_EMPTY, "Empty input file" )
97 CJPEG_WRBMP_JMESSAGE( JERR_INPUT_EOF, "Premature end of input file" )
98 CJPEG_WRBMP_JMESSAGE( JERR_MISMATCHED_QUANT_TABLE,
99 "Cannot transcode due to multiple use of quantization table %d" )
100 CJPEG_WRBMP_JMESSAGE( JERR_MISSING_DATA, "Scan script does not transmit all data" )
101 CJPEG_WRBMP_JMESSAGE( JERR_MODE_CHANGE, "Invalid color quantization mode change" )
102 CJPEG_WRBMP_JMESSAGE( JERR_NOTIMPL, "Not implemented yet" )
103 CJPEG_WRBMP_JMESSAGE( JERR_NOT_COMPILED, "Requested feature was omitted at compile time" )
104 CJPEG_WRBMP_JMESSAGE( JERR_NO_BACKING_STORE, "Backing store not supported" )
105 CJPEG_WRBMP_JMESSAGE( JERR_NO_HUFF_TABLE, "Huffman table 0x%02x was not defined" )
106 CJPEG_WRBMP_JMESSAGE( JERR_NO_IMAGE, "JPEG datastream contains no image" )
107 CJPEG_WRBMP_JMESSAGE( JERR_NO_QUANT_TABLE, "Quantization table 0x%02x was not defined" )
108 CJPEG_WRBMP_JMESSAGE( JERR_NO_SOI, "Not a JPEG file: starts with 0x%02x 0x%02x" )
109 CJPEG_WRBMP_JMESSAGE( JERR_OUT_OF_MEMORY, "Insufficient memory (case %d)" )
110 CJPEG_WRBMP_JMESSAGE( JERR_QUANT_COMPONENTS,
111 "Cannot quantize more than %d color components" )
112 CJPEG_WRBMP_JMESSAGE( JERR_QUANT_FEW_COLORS, "Cannot quantize to fewer than %d colors" )
113 CJPEG_WRBMP_JMESSAGE( JERR_QUANT_MANY_COLORS, "Cannot quantize to more than %d colors" )
114 CJPEG_WRBMP_JMESSAGE( JERR_SOF_DUPLICATE, "Invalid JPEG file structure: two SOF markers" )
115 CJPEG_WRBMP_JMESSAGE( JERR_SOF_NO_SOS, "Invalid JPEG file structure: missing SOS marker" )
116 CJPEG_WRBMP_JMESSAGE( JERR_SOF_UNSUPPORTED, "Unsupported JPEG process: SOF type 0x%02x" )
117 CJPEG_WRBMP_JMESSAGE( JERR_SOI_DUPLICATE, "Invalid JPEG file structure: two SOI markers" )
118 CJPEG_WRBMP_JMESSAGE( JERR_SOS_NO_SOF, "Invalid JPEG file structure: SOS before SOF" )
119 CJPEG_WRBMP_JMESSAGE( JERR_TFILE_CREATE, "Failed to create temporary file %s" )
120 CJPEG_WRBMP_JMESSAGE( JERR_TFILE_READ, "Read failed on temporary file" )
121 CJPEG_WRBMP_JMESSAGE( JERR_TFILE_SEEK, "Seek failed on temporary file" )
122 CJPEG_WRBMP_JMESSAGE( JERR_TFILE_WRITE,
123 "Write failed on temporary file --- out of disk space?" )
124 CJPEG_WRBMP_JMESSAGE( JERR_TOO_LITTLE_DATA, "Application transferred too few scanlines" )
125 CJPEG_WRBMP_JMESSAGE( JERR_UNKNOWN_MARKER, "Unsupported marker type 0x%02x" )
126 CJPEG_WRBMP_JMESSAGE( JERR_VIRTUAL_BUG, "Virtual array controller messed up" )
127 CJPEG_WRBMP_JMESSAGE( JERR_WIDTH_OVERFLOW, "Image too wide for this implementation" )
128 CJPEG_WRBMP_JMESSAGE( JERR_XMS_READ, "Read from XMS failed" )
129 CJPEG_WRBMP_JMESSAGE( JERR_XMS_WRITE, "Write to XMS failed" )
130 CJPEG_WRBMP_JMESSAGE( JMSG_COPYRIGHT, JCOPYRIGHT )
131 CJPEG_WRBMP_JMESSAGE( JMSG_VERSION, JVERSION )
132 CJPEG_WRBMP_JMESSAGE( JTRC_16BIT_TABLES,
133 "Caution: quantization tables are too coarse for baseline JPEG" )
134 CJPEG_WRBMP_JMESSAGE( JTRC_ADOBE,
135 "Adobe APP14 marker: version %d, flags 0x%04x 0x%04x, transform %d" )
136 CJPEG_WRBMP_JMESSAGE( JTRC_APP0, "Unknown APP0 marker (not JFIF), length %u" )
137 CJPEG_WRBMP_JMESSAGE( JTRC_APP14, "Unknown APP14 marker (not Adobe), length %u" )
138 CJPEG_WRBMP_JMESSAGE( JTRC_DAC, "Define Arithmetic Table 0x%02x: 0x%02x" )
139 CJPEG_WRBMP_JMESSAGE( JTRC_DHT, "Define Huffman Table 0x%02x" )
140 CJPEG_WRBMP_JMESSAGE( JTRC_DQT, "Define Quantization Table %d precision %d" )
141 CJPEG_WRBMP_JMESSAGE( JTRC_DRI, "Define Restart Interval %u" )
142 CJPEG_WRBMP_JMESSAGE( JTRC_EMS_CLOSE, "Freed EMS handle %u" )
143 CJPEG_WRBMP_JMESSAGE( JTRC_EMS_OPEN, "Obtained EMS handle %u" )
144 CJPEG_WRBMP_JMESSAGE( JTRC_EOI, "End Of Image" )
145 CJPEG_WRBMP_JMESSAGE( JTRC_HUFFBITS, " %3d %3d %3d %3d %3d %3d %3d %3d" )
146 CJPEG_WRBMP_JMESSAGE( JTRC_JFIF, "JFIF APP0 marker: version %d.%02d, density %dx%d %d" )
147 CJPEG_WRBMP_JMESSAGE( JTRC_JFIF_BADTHUMBNAILSIZE,
148 "Warning: thumbnail image size does not match data length %u" )
149 CJPEG_WRBMP_JMESSAGE( JTRC_JFIF_EXTENSION,
150 "JFIF extension marker: type 0x%02x, length %u" )
151 CJPEG_WRBMP_JMESSAGE( JTRC_JFIF_THUMBNAIL, " with %d x %d thumbnail image" )
152 CJPEG_WRBMP_JMESSAGE( JTRC_MISC_MARKER, "Miscellaneous marker 0x%02x, length %u" )
153 CJPEG_WRBMP_JMESSAGE( JTRC_PARMLESS_MARKER, "Unexpected marker 0x%02x" )
154 CJPEG_WRBMP_JMESSAGE( JTRC_QUANTVALS, " %4u %4u %4u %4u %4u %4u %4u %4u" )
155 CJPEG_WRBMP_JMESSAGE( JTRC_QUANT_3_NCOLORS, "Quantizing to %d = %d*%d*%d colors" )
156 CJPEG_WRBMP_JMESSAGE( JTRC_QUANT_NCOLORS, "Quantizing to %d colors" )
157 CJPEG_WRBMP_JMESSAGE( JTRC_QUANT_SELECTED, "Selected %d colors for quantization" )
158 CJPEG_WRBMP_JMESSAGE( JTRC_RECOVERY_ACTION, "At marker 0x%02x, recovery action %d" )
159 CJPEG_WRBMP_JMESSAGE( JTRC_RST, "RST%d" )
160 CJPEG_WRBMP_JMESSAGE( JTRC_SMOOTH_NOTIMPL,
161 "Smoothing not supported with nonstandard sampling ratios" )
162 CJPEG_WRBMP_JMESSAGE( JTRC_SOF, "Start Of Frame 0x%02x: width=%u, height=%u, components=%d" )
163 CJPEG_WRBMP_JMESSAGE( JTRC_SOF_COMPONENT, " Component %d: %dhx%dv q=%d" )
164 CJPEG_WRBMP_JMESSAGE( JTRC_SOI, "Start of Image" )
165 CJPEG_WRBMP_JMESSAGE( JTRC_SOS, "Start Of Scan: %d components" )
166 CJPEG_WRBMP_JMESSAGE( JTRC_SOS_COMPONENT, " Component %d: dc=%d ac=%d" )
167 CJPEG_WRBMP_JMESSAGE( JTRC_SOS_PARAMS, " Ss=%d, Se=%d, Ah=%d, Al=%d" )
168 CJPEG_WRBMP_JMESSAGE( JTRC_TFILE_CLOSE, "Closed temporary file %s" )
169 CJPEG_WRBMP_JMESSAGE( JTRC_TFILE_OPEN, "Opened temporary file %s" )
170 CJPEG_WRBMP_JMESSAGE( JTRC_THUMB_JPEG,
171 "JFIF extension marker: JPEG-compressed thumbnail image, length %u" )
172 CJPEG_WRBMP_JMESSAGE( JTRC_THUMB_PALETTE,
173 "JFIF extension marker: palette thumbnail image, length %u" )
174 CJPEG_WRBMP_JMESSAGE( JTRC_THUMB_RGB,
175 "JFIF extension marker: RGB thumbnail image, length %u" )
176 CJPEG_WRBMP_JMESSAGE( JTRC_UNKNOWN_IDS,
177 "Unrecognized component IDs %d %d %d, assuming YCbCr" )
178 CJPEG_WRBMP_JMESSAGE( JTRC_XMS_CLOSE, "Freed XMS handle %u" )
179 CJPEG_WRBMP_JMESSAGE( JTRC_XMS_OPEN, "Obtained XMS handle %u" )
180 CJPEG_WRBMP_JMESSAGE( JWRN_ADOBE_XFORM, "Unknown Adobe color transform code %d" )
181 CJPEG_WRBMP_JMESSAGE( JWRN_BOGUS_PROGRESSION,
182 "Inconsistent progression sequence for component %d coefficient %d" )
183 CJPEG_WRBMP_JMESSAGE( JWRN_EXTRANEOUS_DATA,
184 "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x" )
185 CJPEG_WRBMP_JMESSAGE( JWRN_HIT_MARKER, "Corrupt JPEG data: premature end of data segment" )
186 CJPEG_WRBMP_JMESSAGE( JWRN_HUFF_BAD_CODE, "Corrupt JPEG data: bad Huffman code" )
187 CJPEG_WRBMP_JMESSAGE( JWRN_JFIF_MAJOR, "Warning: unknown JFIF revision number %d.%02d" )
188 CJPEG_WRBMP_JMESSAGE( JWRN_JPEG_EOF, "Premature end of JPEG file" )
189 CJPEG_WRBMP_JMESSAGE( JWRN_MUST_RESYNC,
190 "Corrupt JPEG data: found marker 0x%02x instead of RST%d" )
191 CJPEG_WRBMP_JMESSAGE( JWRN_NOT_SEQUENTIAL, "Invalid SOS parameters for sequential JPEG" )
192 CJPEG_WRBMP_JMESSAGE( JWRN_TOO_MUCH_DATA, "Application transferred too many scanlines" )
193
194 #ifdef CJPEG_WRBMP_JMAKE_ENUM_LIST
195
196 JMSG_LASTMSGCODE
197} CJPEG_WRBMP_J_MESSAGE_CODE;
198
199#undef CJPEG_WRBMP_JMAKE_ENUM_LIST
200 #endif /* JMAKE_ENUM_LIST */
201
202/* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
203#undef CJPEG_WRBMP_JMESSAGE