DEADSOFTWARE

hopefully no more windows
[d2df-editor.git] / src / lib / vampimg / JpegLib / imjdeferr.pas
1 unit imjdeferr;
3 { This file defines the error and message codes for the cjpeg/djpeg
4 applications. These strings are not needed as part of the JPEG library
5 proper.
6 Edit this file to add new codes, or to translate the message strings to
7 some other language. }
9 { Original cderror.h ; Copyright (C) 1994, Thomas G. Lane. }
11 interface
13 {$I imjconfig.inc}
15 { To define the enum list of message codes, include this file without
16 defining macro JMESSAGE. To create a message string table, include it
17 again with a suitable JMESSAGE definition (see jerror.c for an example). }
20 { Original: jversion.h ; Copyright (C) 1991-1996, Thomas G. Lane. }
21 { This file contains software version identification. }
23 const
24 JVERSION = '6a 7-Feb-96';
26 JCOPYRIGHT = 'Copyright (C) 1996, Thomas G. Lane';
28 JNOTICE = 'Pascal Translation, Copyright (C) 1996, Jacques Nomssi Nzali';
30 { Create the message string table.
31 We do this from the master message list in jerror.h by re-reading
32 jerror.h with a suitable definition for macro JMESSAGE.
33 The message table is made an external symbol just in case any applications
34 want to refer to it directly. }
36 type
37 J_MESSAGE_CODE =(
38 JMSG_NOMESSAGE,
39 JERR_ARITH_NOTIMPL,
40 JERR_BAD_ALIGN_TYPE,
41 JERR_BAD_ALLOC_CHUNK,
42 JERR_BAD_BUFFER_MODE,
43 JERR_BAD_COMPONENT_ID,
44 JERR_BAD_DCT_COEF,
45 JERR_BAD_DCTSIZE,
46 JERR_BAD_HUFF_TABLE,
47 JERR_BAD_IN_COLORSPACE,
48 JERR_BAD_J_COLORSPACE,
49 JERR_BAD_LENGTH,
50 JERR_BAD_LIB_VERSION,
51 JERR_BAD_MCU_SIZE,
52 JERR_BAD_POOL_ID,
53 JERR_BAD_PRECISION,
54 JERR_BAD_PROGRESSION,
55 JERR_BAD_PROG_SCRIPT,
56 JERR_BAD_SAMPLING,
57 JERR_BAD_SCAN_SCRIPT,
58 JERR_BAD_STATE,
59 JERR_BAD_STRUCT_SIZE,
60 JERR_BAD_VIRTUAL_ACCESS,
61 JERR_BUFFER_SIZE,
62 JERR_CANT_SUSPEND,
63 JERR_CCIR601_NOTIMPL,
64 JERR_COMPONENT_COUNT,
65 JERR_CONVERSION_NOTIMPL,
66 JERR_DAC_INDEX,
67 JERR_DAC_VALUE,
68 JERR_DHT_COUNTS,
69 JERR_DHT_INDEX,
70 JERR_DQT_INDEX,
71 JERR_EMPTY_IMAGE,
72 JERR_EMS_READ,
73 JERR_EMS_WRITE,
74 JERR_EOI_EXPECTED,
75 JERR_FILE_READ,
76 JERR_FILE_WRITE,
77 JERR_FRACT_SAMPLE_NOTIMPL,
78 JERR_HUFF_CLEN_OVERFLOW,
79 JERR_HUFF_MISSING_CODE,
80 JERR_IMAGE_TOO_BIG,
81 JERR_INPUT_EMPTY,
82 JERR_INPUT_EOF,
83 JERR_MISMATCHED_QUANT_TABLE,
84 JERR_MISSING_DATA,
85 JERR_MODE_CHANGE,
86 JERR_NOTIMPL,
87 JERR_NOT_COMPILED,
88 JERR_NO_BACKING_STORE,
89 JERR_NO_HUFF_TABLE,
90 JERR_NO_IMAGE,
91 JERR_NO_QUANT_TABLE,
92 JERR_NO_SOI,
93 JERR_OUT_OF_MEMORY,
94 JERR_QUANT_COMPONENTS,
95 JERR_QUANT_FEW_COLORS,
96 JERR_QUANT_MANY_COLORS,
97 JERR_SOF_DUPLICATE,
98 JERR_SOF_NO_SOS,
99 JERR_SOF_UNSUPPORTED,
100 JERR_SOI_DUPLICATE,
101 JERR_SOS_NO_SOF,
102 JERR_TFILE_CREATE,
103 JERR_TFILE_READ,
104 JERR_TFILE_SEEK,
105 JERR_TFILE_WRITE,
106 JERR_TOO_LITTLE_DATA,
107 JERR_UNKNOWN_MARKER,
108 JERR_VIRTUAL_BUG,
109 JERR_WIDTH_OVERFLOW,
110 JERR_XMS_READ,
111 JERR_XMS_WRITE,
112 JMSG_COPYRIGHT,
113 JMSG_VERSION,
114 JTRC_16BIT_TABLES,
115 JTRC_ADOBE,
116 JTRC_APP0,
117 JTRC_APP14,
118 JTRC_DAC,
119 JTRC_DHT,
120 JTRC_DQT,
121 JTRC_DRI,
122 JTRC_EMS_CLOSE,
123 JTRC_EMS_OPEN,
124 JTRC_EOI,
125 JTRC_HUFFBITS,
126 JTRC_JFIF,
127 JTRC_JFIF_BADTHUMBNAILSIZE,
128 JTRC_JFIF_EXTENSION,
129 JTRC_JFIF_THUMBNAIL,
130 JTRC_MISC_MARKER,
131 JTRC_PARMLESS_MARKER,
132 JTRC_QUANTVALS,
133 JTRC_QUANT_3_NCOLORS,
134 JTRC_QUANT_NCOLORS,
135 JTRC_QUANT_SELECTED,
136 JTRC_RECOVERY_ACTION,
137 JTRC_RST,
138 JTRC_SMOOTH_NOTIMPL,
139 JTRC_SOF,
140 JTRC_SOF_COMPONENT,
141 JTRC_SOI,
142 JTRC_SOS,
143 JTRC_SOS_COMPONENT,
144 JTRC_SOS_PARAMS,
145 JTRC_TFILE_CLOSE,
146 JTRC_TFILE_OPEN,
147 JTRC_THUMB_JPEG,
148 JTRC_THUMB_PALETTE,
149 JTRC_THUMB_RGB,
150 JTRC_UNKNOWN_IDS,
151 JTRC_XMS_CLOSE,
152 JTRC_XMS_OPEN,
153 JWRN_ADOBE_XFORM,
154 JWRN_BOGUS_PROGRESSION,
155 JWRN_EXTRANEOUS_DATA,
156 JWRN_HIT_MARKER,
157 JWRN_HUFF_BAD_CODE,
158 JWRN_JFIF_MAJOR,
159 JWRN_JPEG_EOF,
160 JWRN_MUST_RESYNC,
161 JWRN_NOT_SEQUENTIAL,
162 JWRN_TOO_MUCH_DATA,
165 JMSG_FIRSTADDONCODE, { Must be first entry! }
167 {$ifdef BMP_SUPPORTED}
168 JERR_BMP_BADCMAP, { Unsupported BMP colormap format }
169 JERR_BMP_BADDEPTH, { Only 8- and 24-bit BMP files are supported }
170 JERR_BMP_BADHEADER, { Invalid BMP file: bad header length }
171 JERR_BMP_BADPLANES, { Invalid BMP file: biPlanes not equal to 1 }
172 JERR_BMP_COLORSPACE, { BMP output must be grayscale or RGB }
173 JERR_BMP_COMPRESSED, { Sorry, compressed BMPs not yet supported }
174 JERR_BMP_NOT, { Not a BMP file - does not start with BM }
175 JTRC_BMP, { %dx%d 24-bit BMP image }
176 JTRC_BMP_MAPPED, { %dx%d 8-bit colormapped BMP image }
177 JTRC_BMP_OS2, { %dx%d 24-bit OS2 BMP image }
178 JTRC_BMP_OS2_MAPPED, { %dx%d 8-bit colormapped OS2 BMP image }
179 {$endif} { BMP_SUPPORTED }
181 {$ifdef GIF_SUPPORTED}
182 JERR_GIF_BUG, { GIF output got confused }
183 JERR_GIF_CODESIZE, { Bogus GIF codesize %d }
184 JERR_GIF_COLORSPACE, { GIF output must be grayscale or RGB }
185 JERR_GIF_IMAGENOTFOUND, { Too few images in GIF file }
186 JERR_GIF_NOT, { Not a GIF file }
187 JTRC_GIF, { %dx%dx%d GIF image }
188 JTRC_GIF_BADVERSION,
189 { Warning: unexpected GIF version number '%c%c%c' }
190 JTRC_GIF_EXTENSION, { Ignoring GIF extension block of type 0x%02x }
191 JTRC_GIF_NONSQUARE, { Caution: nonsquare pixels in input }
192 JWRN_GIF_BADDATA, { Corrupt data in GIF file }
193 JWRN_GIF_CHAR, { Bogus char 0x%02x in GIF file, ignoring }
194 JWRN_GIF_ENDCODE, { Premature end of GIF image }
195 JWRN_GIF_NOMOREDATA, { Ran out of GIF bits }
196 {$endif} { GIF_SUPPORTED }
198 {$ifdef PPM_SUPPORTED}
199 JERR_PPM_COLORSPACE, { PPM output must be grayscale or RGB }
200 JERR_PPM_NONNUMERIC, { Nonnumeric data in PPM file }
201 JERR_PPM_NOT, { Not a PPM file }
202 JTRC_PGM, { %dx%d PGM image }
203 JTRC_PGM_TEXT, { %dx%d text PGM image }
204 JTRC_PPM, { %dx%d PPM image }
205 JTRC_PPM_TEXT, { %dx%d text PPM image }
206 {$endif} { PPM_SUPPORTED }
208 {$ifdef RLE_SUPPORTED}
209 JERR_RLE_BADERROR, { Bogus error code from RLE library }
210 JERR_RLE_COLORSPACE, { RLE output must be grayscale or RGB }
211 JERR_RLE_DIMENSIONS, { Image dimensions (%dx%d) too large for RLE }
212 JERR_RLE_EMPTY, { Empty RLE file }
213 JERR_RLE_EOF, { Premature EOF in RLE header }
214 JERR_RLE_MEM, { Insufficient memory for RLE header }
215 JERR_RLE_NOT, { Not an RLE file }
216 JERR_RLE_TOOMANYCHANNELS, { Cannot handle %d output channels for RLE }
217 JERR_RLE_UNSUPPORTED, { Cannot handle this RLE setup }
218 JTRC_RLE, { %dx%d full-color RLE file }
219 JTRC_RLE_FULLMAP, { %dx%d full-color RLE file with map of length %d }
220 JTRC_RLE_GRAY, { %dx%d grayscale RLE file }
221 JTRC_RLE_MAPGRAY, { %dx%d grayscale RLE file with map of length %d }
222 JTRC_RLE_MAPPED, { %dx%d colormapped RLE file with map of length %d }
223 {$endif} { RLE_SUPPORTED }
225 {$ifdef TARGA_SUPPORTED}
226 JERR_TGA_BADCMAP, { Unsupported Targa colormap format }
227 JERR_TGA_BADPARMS, { Invalid or unsupported Targa file }
228 JERR_TGA_COLORSPACE, { Targa output must be grayscale or RGB }
229 JTRC_TGA, { %dx%d RGB Targa image }
230 JTRC_TGA_GRAY, { %dx%d grayscale Targa image }
231 JTRC_TGA_MAPPED, { %dx%d colormapped Targa image }
232 {$else}
233 JERR_TGA_NOTCOMP, { Targa support was not compiled }
234 {$endif} { TARGA_SUPPORTED }
236 JERR_BAD_CMAP_FILE,
237 { Color map file is invalid or of unsupported format }
238 JERR_TOO_MANY_COLORS,
239 { Output file format cannot handle %d colormap entries }
240 JERR_UNGETC_FAILED, { ungetc failed }
241 {$ifdef TARGA_SUPPORTED}
242 JERR_UNKNOWN_FORMAT,
243 { Unrecognized input file format --- perhaps you need -targa }
244 {$else}
245 JERR_UNKNOWN_FORMAT, { Unrecognized input file format }
246 {$endif}
247 JERR_UNSUPPORTED_FORMAT, { Unsupported output file format }
249 JMSG_LASTADDONCODE
250 );
253 const
254 JMSG_LASTMSGCODE : J_MESSAGE_CODE = JMSG_LASTADDONCODE;
256 type
257 msg_table = Array[J_MESSAGE_CODE] of string[80];
258 const
259 jpeg_std_message_table : msg_table = (
261 { JMSG_NOMESSAGE } 'Bogus message code %d', { Must be first entry! }
263 { For maintenance convenience, list is alphabetical by message code name }
264 { JERR_ARITH_NOTIMPL }
265 'Sorry, there are legal restrictions on arithmetic coding',
266 { JERR_BAD_ALIGN_TYPE } 'ALIGN_TYPE is wrong, please fix',
267 { JERR_BAD_ALLOC_CHUNK } 'MAX_ALLOC_CHUNK is wrong, please fix',
268 { JERR_BAD_BUFFER_MODE } 'Bogus buffer control mode',
269 { JERR_BAD_COMPONENT_ID } 'Invalid component ID %d in SOS',
270 { JERR_BAD_DCT_COEF } 'DCT coefficient out of range',
271 { JERR_BAD_DCTSIZE } 'IDCT output block size %d not supported',
272 { JERR_BAD_HUFF_TABLE } 'Bogus Huffman table definition',
273 { JERR_BAD_IN_COLORSPACE } 'Bogus input colorspace',
274 { JERR_BAD_J_COLORSPACE } 'Bogus JPEG colorspace',
275 { JERR_BAD_LENGTH } 'Bogus marker length',
276 { JERR_BAD_LIB_VERSION }
277 'Wrong JPEG library version: library is %d, caller expects %d',
278 { JERR_BAD_MCU_SIZE } 'Sampling factors too large for interleaved scan',
279 { JERR_BAD_POOL_ID } 'Invalid memory pool code %d',
280 { JERR_BAD_PRECISION } 'Unsupported JPEG data precision %d',
281 { JERR_BAD_PROGRESSION }
282 'Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d',
283 { JERR_BAD_PROG_SCRIPT }
284 'Invalid progressive parameters at scan script entry %d',
285 { JERR_BAD_SAMPLING } 'Bogus sampling factors',
286 { JERR_BAD_SCAN_SCRIPT } 'Invalid scan script at entry %d',
287 { JERR_BAD_STATE } 'Improper call to JPEG library in state %d',
288 { JERR_BAD_STRUCT_SIZE }
289 'JPEG parameter struct mismatch: library thinks size is %d, caller expects %d',
290 { JERR_BAD_VIRTUAL_ACCESS } 'Bogus virtual array access',
291 { JERR_BUFFER_SIZE } 'Buffer passed to JPEG library is too small',
292 { JERR_CANT_SUSPEND } 'Suspension not allowed here',
293 { JERR_CCIR601_NOTIMPL } 'CCIR601 sampling not implemented yet',
294 { JERR_COMPONENT_COUNT } 'Too many color components: %d, max %d',
295 { JERR_CONVERSION_NOTIMPL } 'Unsupported color conversion request',
296 { JERR_DAC_INDEX } 'Bogus DAC index %d',
297 { JERR_DAC_VALUE } 'Bogus DAC value $%x',
298 { JERR_DHT_COUNTS } 'Bogus DHT counts',
299 { JERR_DHT_INDEX } 'Bogus DHT index %d',
300 { JERR_DQT_INDEX } 'Bogus DQT index %d',
301 { JERR_EMPTY_IMAGE } 'Empty JPEG image (DNL not supported)',
302 { JERR_EMS_READ } 'Read from EMS failed',
303 { JERR_EMS_WRITE } 'Write to EMS failed',
304 { JERR_EOI_EXPECTED } 'Didn''t expect more than one scan',
305 { JERR_FILE_READ } 'Input file read error',
306 { JERR_FILE_WRITE } 'Output file write error --- out of disk space?',
307 { JERR_FRACT_SAMPLE_NOTIMPL } 'Fractional sampling not implemented yet',
308 { JERR_HUFF_CLEN_OVERFLOW } 'Huffman code size table overflow',
309 { JERR_HUFF_MISSING_CODE } 'Missing Huffman code table entry',
310 { JERR_IMAGE_TOO_BIG } 'Maximum supported image dimension is %d pixels',
311 { JERR_INPUT_EMPTY } 'Empty input file',
312 { JERR_INPUT_EOF } 'Premature end of input file',
313 { JERR_MISMATCHED_QUANT_TABLE }
314 'Cannot transcode due to multiple use of quantization table %d',
315 { JERR_MISSING_DATA } 'Scan script does not transmit all data',
316 { JERR_MODE_CHANGE } 'Invalid color quantization mode change',
317 { JERR_NOTIMPL } 'Not implemented yet',
318 { JERR_NOT_COMPILED } 'Requested feature was omitted at compile time',
319 { JERR_NO_BACKING_STORE } 'Backing store not supported',
320 { JERR_NO_HUFF_TABLE } 'Huffman table $%02x was not defined',
321 { JERR_NO_IMAGE } 'JPEG datastream contains no image',
322 { JERR_NO_QUANT_TABLE } 'Quantization table $%02x was not defined',
323 { JERR_NO_SOI } 'Not a JPEG file: starts with $%02x $%02x',
324 { JERR_OUT_OF_MEMORY } 'Insufficient memory (case %d)',
325 { JERR_QUANT_COMPONENTS }
326 'Cannot quantize more than %d color components',
327 { JERR_QUANT_FEW_COLORS } 'Cannot quantize to fewer than %d colors',
328 { JERR_QUANT_MANY_COLORS } 'Cannot quantize to more than %d colors',
329 { JERR_SOF_DUPLICATE } 'Invalid JPEG file structure: two SOF markers',
330 { JERR_SOF_NO_SOS } 'Invalid JPEG file structure: missing SOS marker',
331 { JERR_SOF_UNSUPPORTED } 'Unsupported JPEG process: SOF type $%02x',
332 { JERR_SOI_DUPLICATE } 'Invalid JPEG file structure: two SOI markers',
333 { JERR_SOS_NO_SOF } 'Invalid JPEG file structure: SOS before SOF',
334 { JERR_TFILE_CREATE } 'Failed to create temporary file %s',
335 { JERR_TFILE_READ } 'Read failed on temporary file',
336 { JERR_TFILE_SEEK } 'Seek failed on temporary file',
337 { JERR_TFILE_WRITE }
338 'Write failed on temporary file --- out of disk space?',
339 { JERR_TOO_LITTLE_DATA } 'Application transferred too few scanlines',
340 { JERR_UNKNOWN_MARKER } 'Unsupported marker type $%02x',
341 { JERR_VIRTUAL_BUG } 'Virtual array controller messed up',
342 { JERR_WIDTH_OVERFLOW } 'Image too wide for this implementation',
343 { JERR_XMS_READ } 'Read from XMS failed',
344 { JERR_XMS_WRITE } 'Write to XMS failed',
345 { JMSG_COPYRIGHT } JCOPYRIGHT,
346 { JMSG_VERSION } JVERSION,
347 { JTRC_16BIT_TABLES }
348 'Caution: quantization tables are too coarse for baseline JPEG',
349 { JTRC_ADOBE }
350 'Adobe APP14 marker: version %d, flags $%04x $%04x, transform %d',
351 { JTRC_APP0 } 'Unknown APP0 marker (not JFIF), length %d',
352 { JTRC_APP14 } 'Unknown APP14 marker (not Adobe), length %d',
353 { JTRC_DAC } 'Define Arithmetic Table $%02x: $%02x',
354 { JTRC_DHT } 'Define Huffman Table $%02x',
355 { JTRC_DQT } 'Define Quantization Table %d precision %d',
356 { JTRC_DRI } 'Define Restart Interval %d',
357 { JTRC_EMS_CLOSE } 'Freed EMS handle %d',
358 { JTRC_EMS_OPEN } 'Obtained EMS handle %d',
359 { JTRC_EOI } 'End Of Image',
360 { JTRC_HUFFBITS } ' %3d %3d %3d %3d %3d %3d %3d %3d',
361 { JTRC_JFIF } 'JFIF APP0 marker, density %dx%d %d',
362 { JTRC_JFIF_BADTHUMBNAILSIZE }
363 'Warning: thumbnail image size does not match data length %d',
364 { JTRC_JFIF_EXTENSION } 'JFIF extension marker: type 0x%02x, length %u',
365 { JTRC_JFIF_THUMBNAIL } ' with %d x %d thumbnail image',
366 { JTRC_MISC_MARKER } 'Skipping marker $%02x, length %d',
367 { JTRC_PARMLESS_MARKER } 'Unexpected marker $%02x',
368 { JTRC_QUANTVALS } ' %4d %4d %4d %4d %4d %4d %4d %4d',
369 { JTRC_QUANT_3_NCOLORS } 'Quantizing to %d = %d*%d*%d colors',
370 { JTRC_QUANT_NCOLORS } 'Quantizing to %d colors',
371 { JTRC_QUANT_SELECTED } 'Selected %d colors for quantization',
372 { JTRC_RECOVERY_ACTION } 'At marker $%02x, recovery action %d',
373 { JTRC_RST } 'RST%d',
374 { JTRC_SMOOTH_NOTIMPL }
375 'Smoothing not supported with nonstandard sampling ratios',
376 { JTRC_SOF } 'Start Of Frame $%02x: width=%d, height=%d, components=%d',
377 { JTRC_SOF_COMPONENT } ' Component %d: %dhx%dv q=%d',
378 { JTRC_SOI } 'Start of Image',
379 { JTRC_SOS } 'Start Of Scan: %d components',
380 { JTRC_SOS_COMPONENT } ' Component %d: dc=%d ac=%d',
381 { JTRC_SOS_PARAMS } ' Ss=%d, Se=%d, Ah=%d, Al=%d',
382 { JTRC_TFILE_CLOSE } 'Closed temporary file %s',
383 { JTRC_TFILE_OPEN } 'Opened temporary file %s',
384 { JTRC_THUMB_JPEG }
385 'JFIF extension marker: JPEG-compressed thumbnail image, length %u',
386 { JMESSAGE(JTRC_THUMB_PALETTE }
387 'JFIF extension marker: palette thumbnail image, length %u',
388 { JMESSAGE(JTRC_THUMB_RGB }
389 'JFIF extension marker: RGB thumbnail image, length %u',
390 { JTRC_UNKNOWN_IDS }
391 'Unrecognized component IDs %d %d %d, assuming YCbCr',
392 { JTRC_XMS_CLOSE } 'Freed XMS handle %d',
393 { JTRC_XMS_OPEN } 'Obtained XMS handle %d',
394 { JWRN_ADOBE_XFORM } 'Unknown Adobe color transform code %d',
395 { JWRN_BOGUS_PROGRESSION }
396 'Inconsistent progression sequence for component %d coefficient %d',
397 { JWRN_EXTRANEOUS_DATA }
398 'Corrupt JPEG data: %d extraneous bytes before marker $%02x',
399 { JWRN_HIT_MARKER } 'Corrupt JPEG data: premature end of data segment',
400 { JWRN_HUFF_BAD_CODE } 'Corrupt JPEG data: bad Huffman code',
401 { JWRN_JFIF_MAJOR } 'Warning: unknown JFIF revision number %d.%02d',
402 { JWRN_JPEG_EOF } 'Premature end of JPEG file',
403 { JWRN_MUST_RESYNC }
404 'Corrupt JPEG data: found marker $%02x instead of RST%d',
405 { JWRN_NOT_SEQUENTIAL } 'Invalid SOS parameters for sequential JPEG',
406 { JWRN_TOO_MUCH_DATA } 'Application transferred too many scanlines',
408 { JMSG_FIRSTADDONCODE } '', { Must be first entry! }
410 {$ifdef BMP_SUPPORTED}
411 { JERR_BMP_BADCMAP } 'Unsupported BMP colormap format',
412 { JERR_BMP_BADDEPTH } 'Only 8- and 24-bit BMP files are supported',
413 { JERR_BMP_BADHEADER } 'Invalid BMP file: bad header length',
414 { JERR_BMP_BADPLANES } 'Invalid BMP file: biPlanes not equal to 1',
415 { JERR_BMP_COLORSPACE } 'BMP output must be grayscale or RGB',
416 { JERR_BMP_COMPRESSED } 'Sorry, compressed BMPs not yet supported',
417 { JERR_BMP_NOT } 'Not a BMP file - does not start with BM',
418 { JTRC_BMP } '%dx%d 24-bit BMP image',
419 { JTRC_BMP_MAPPED } '%dx%d 8-bit colormapped BMP image',
420 { JTRC_BMP_OS2 } '%dx%d 24-bit OS2 BMP image',
421 { JTRC_BMP_OS2_MAPPED } '%dx%d 8-bit colormapped OS2 BMP image',
422 {$endif} { BMP_SUPPORTED }
424 {$ifdef GIF_SUPPORTED}
425 { JERR_GIF_BUG } 'GIF output got confused',
426 { JERR_GIF_CODESIZE } 'Bogus GIF codesize %d',
427 { JERR_GIF_COLORSPACE } 'GIF output must be grayscale or RGB',
428 { JERR_GIF_IMAGENOTFOUND } 'Too few images in GIF file',
429 { JERR_GIF_NOT } 'Not a GIF file',
430 { JTRC_GIF } '%dx%dx%d GIF image',
431 { JTRC_GIF_BADVERSION }
432 'Warning: unexpected GIF version number "%c%c%c"',
433 { JTRC_GIF_EXTENSION } 'Ignoring GIF extension block of type 0x%02x',
434 { JTRC_GIF_NONSQUARE } 'Caution: nonsquare pixels in input',
435 { JWRN_GIF_BADDATA } 'Corrupt data in GIF file',
436 { JWRN_GIF_CHAR } 'Bogus char 0x%02x in GIF file, ignoring',
437 { JWRN_GIF_ENDCODE } 'Premature end of GIF image',
438 { JWRN_GIF_NOMOREDATA } 'Ran out of GIF bits',
439 {$endif} { GIF_SUPPORTED }
441 {$ifdef PPM_SUPPORTED}
442 { JERR_PPM_COLORSPACE } 'PPM output must be grayscale or RGB',
443 { JERR_PPM_NONNUMERIC } 'Nonnumeric data in PPM file',
444 { JERR_PPM_NOT } 'Not a PPM file',
445 { JTRC_PGM } '%dx%d PGM image',
446 { JTRC_PGM_TEXT } '%dx%d text PGM image',
447 { JTRC_PPM } '%dx%d PPM image',
448 { JTRC_PPM_TEXT } '%dx%d text PPM image',
449 {$endif} { PPM_SUPPORTED }
451 {$ifdef RLE_SUPPORTED}
452 { JERR_RLE_BADERROR } 'Bogus error code from RLE library',
453 { JERR_RLE_COLORSPACE } 'RLE output must be grayscale or RGB',
454 { JERR_RLE_DIMENSIONS } 'Image dimensions (%dx%d) too large for RLE',
455 { JERR_RLE_EMPTY } 'Empty RLE file',
456 { JERR_RLE_EOF } 'Premature EOF in RLE header',
457 { JERR_RLE_MEM } 'Insufficient memory for RLE header',
458 { JERR_RLE_NOT } 'Not an RLE file',
459 { JERR_RLE_TOOMANYCHANNELS } 'Cannot handle %d output channels for RLE',
460 { JERR_RLE_UNSUPPORTED } 'Cannot handle this RLE setup',
461 { JTRC_RLE } '%dx%d full-color RLE file',
462 { JTRC_RLE_FULLMAP } '%dx%d full-color RLE file with map of length %d',
463 { JTRC_RLE_GRAY } '%dx%d grayscale RLE file',
464 { JTRC_RLE_MAPGRAY } '%dx%d grayscale RLE file with map of length %d',
465 { JTRC_RLE_MAPPED } '%dx%d colormapped RLE file with map of length %d',
466 {$endif} { RLE_SUPPORTED }
468 {$ifdef TARGA_SUPPORTED}
469 { JERR_TGA_BADCMAP } 'Unsupported Targa colormap format',
470 { JERR_TGA_BADPARMS } 'Invalid or unsupported Targa file',
471 { JERR_TGA_COLORSPACE } 'Targa output must be grayscale or RGB',
472 { JTRC_TGA } '%dx%d RGB Targa image',
473 { JTRC_TGA_GRAY } '%dx%d grayscale Targa image',
474 { JTRC_TGA_MAPPED } '%dx%d colormapped Targa image',
475 {$else}
476 { JERR_TGA_NOTCOMP } 'Targa support was not compiled',
477 {$endif} { TARGA_SUPPORTED }
479 { JERR_BAD_CMAP_FILE }
480 'Color map file is invalid or of unsupported format',
481 { JERR_TOO_MANY_COLORS }
482 'Output file format cannot handle %d colormap entries',
483 { JERR_UNGETC_FAILED } 'ungetc failed',
484 {$ifdef TARGA_SUPPORTED}
485 { JERR_UNKNOWN_FORMAT }
486 'Unrecognized input file format --- perhaps you need -targa',
487 {$else}
488 { JERR_UNKNOWN_FORMAT } 'Unrecognized input file format',
489 {$endif}
490 { JERR_UNSUPPORTED_FORMAT } 'Unsupported output file format',
493 { JMSG_LASTADDONCODE } '');
495 implementation
497 end.