35#define JMESSAGE(code,string) code ,
39JMESSAGE(JMSG_NOMESSAGE,
"Bogus message code %d")
43 "Sorry, there are legal restrictions on arithmetic coding")
44JMESSAGE(JERR_BAD_ALIGN_TYPE,
"ALIGN_TYPE is wrong, please fix")
45JMESSAGE(JERR_BAD_ALLOC_CHUNK,
"MAX_ALLOC_CHUNK is wrong, please fix")
46JMESSAGE(JERR_BAD_BUFFER_MODE,
"Bogus buffer control mode")
47JMESSAGE(JERR_BAD_COMPONENT_ID,
"Invalid component ID %d in SOS")
48JMESSAGE(JERR_BAD_DCT_COEF,
"DCT coefficient out of range")
49JMESSAGE(JERR_BAD_DCTSIZE,
"IDCT output block size %d not supported")
50JMESSAGE(JERR_BAD_HUFF_TABLE,
"Bogus Huffman table definition")
51JMESSAGE(JERR_BAD_IN_COLORSPACE,
"Bogus input colorspace")
52JMESSAGE(JERR_BAD_J_COLORSPACE,
"Bogus JPEG colorspace")
53JMESSAGE(JERR_BAD_LENGTH,
"Bogus marker length")
55 "Wrong JPEG library version: library is %d, caller expects %d")
56JMESSAGE(JERR_BAD_MCU_SIZE,
"Sampling factors too large for interleaved scan")
57JMESSAGE(JERR_BAD_POOL_ID,
"Invalid memory pool code %d")
58JMESSAGE(JERR_BAD_PRECISION,
"Unsupported JPEG data precision %d")
60 "Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d")
62 "Invalid progressive parameters at scan script entry %d")
63JMESSAGE(JERR_BAD_SAMPLING,
"Bogus sampling factors")
64JMESSAGE(JERR_BAD_SCAN_SCRIPT,
"Invalid scan script at entry %d")
65JMESSAGE(JERR_BAD_STATE,
"Improper call to JPEG library in state %d")
67 "JPEG parameter struct mismatch: library thinks size is %u, caller expects %u")
68JMESSAGE(JERR_BAD_VIRTUAL_ACCESS,
"Bogus virtual array access")
69JMESSAGE(JERR_BUFFER_SIZE,
"Buffer passed to JPEG library is too small")
70JMESSAGE(JERR_CANT_SUSPEND,
"Suspension not allowed here")
71JMESSAGE(JERR_CCIR601_NOTIMPL,
"CCIR601 sampling not implemented yet")
72JMESSAGE(JERR_COMPONENT_COUNT,
"Too many color components: %d, max %d")
73JMESSAGE(JERR_CONVERSION_NOTIMPL,
"Unsupported color conversion request")
74JMESSAGE(JERR_DAC_INDEX,
"Bogus DAC index %d")
75JMESSAGE(JERR_DAC_VALUE,
"Bogus DAC value 0x%x")
76JMESSAGE(JERR_DHT_INDEX,
"Bogus DHT index %d")
77JMESSAGE(JERR_DQT_INDEX,
"Bogus DQT index %d")
78JMESSAGE(JERR_EMPTY_IMAGE,
"Empty JPEG image (DNL not supported)")
79JMESSAGE(JERR_EMS_READ,
"Read from EMS failed")
80JMESSAGE(JERR_EMS_WRITE,
"Write to EMS failed")
81JMESSAGE(JERR_EOI_EXPECTED,
"Didn't expect more than one scan")
82JMESSAGE(JERR_FILE_READ,
"Input file read error")
83JMESSAGE(JERR_FILE_WRITE,
"Output file write error --- out of disk space?")
84JMESSAGE(JERR_FRACT_SAMPLE_NOTIMPL,
"Fractional sampling not implemented yet")
85JMESSAGE(JERR_HUFF_CLEN_OVERFLOW,
"Huffman code size table overflow")
86JMESSAGE(JERR_HUFF_MISSING_CODE,
"Missing Huffman code table entry")
87JMESSAGE(JERR_IMAGE_TOO_BIG,
"Maximum supported image dimension is %u pixels")
88JMESSAGE(JERR_INPUT_EMPTY,
"Empty input file")
89JMESSAGE(JERR_INPUT_EOF,
"Premature end of input file")
91 "Cannot transcode due to multiple use of quantization table %d")
92JMESSAGE(JERR_MISSING_DATA,
"Scan script does not transmit all data")
93JMESSAGE(JERR_MODE_CHANGE,
"Invalid color quantization mode change")
94JMESSAGE(JERR_NOTIMPL,
"Not implemented yet")
95JMESSAGE(JERR_NOT_COMPILED,
"Requested feature was omitted at compile time")
96JMESSAGE(JERR_NO_BACKING_STORE,
"Backing store not supported")
97JMESSAGE(JERR_NO_HUFF_TABLE,
"Huffman table 0x%02x was not defined")
98JMESSAGE(JERR_NO_IMAGE,
"JPEG datastream contains no image")
99JMESSAGE(JERR_NO_QUANT_TABLE,
"Quantization table 0x%02x was not defined")
100JMESSAGE(JERR_NO_SOI,
"Not a JPEG file: starts with 0x%02x 0x%02x")
101JMESSAGE(JERR_OUT_OF_MEMORY,
"Insufficient memory (case %d)")
103 "Cannot quantize more than %d color components")
104JMESSAGE(JERR_QUANT_FEW_COLORS,
"Cannot quantize to fewer than %d colors")
105JMESSAGE(JERR_QUANT_MANY_COLORS,
"Cannot quantize to more than %d colors")
106JMESSAGE(JERR_SOF_DUPLICATE,
"Invalid JPEG file structure: two SOF markers")
107JMESSAGE(JERR_SOF_NO_SOS,
"Invalid JPEG file structure: missing SOS marker")
108JMESSAGE(JERR_SOF_UNSUPPORTED,
"Unsupported JPEG process: SOF type 0x%02x")
109JMESSAGE(JERR_SOI_DUPLICATE,
"Invalid JPEG file structure: two SOI markers")
110JMESSAGE(JERR_SOS_NO_SOF,
"Invalid JPEG file structure: SOS before SOF")
111JMESSAGE(JERR_TFILE_CREATE,
"Failed to create temporary file %s")
112JMESSAGE(JERR_TFILE_READ,
"Read failed on temporary file")
113JMESSAGE(JERR_TFILE_SEEK,
"Seek failed on temporary file")
115 "Write failed on temporary file --- out of disk space?")
116JMESSAGE(JERR_TOO_LITTLE_DATA,
"Application transferred too few scanlines")
117JMESSAGE(JERR_UNKNOWN_MARKER,
"Unsupported marker type 0x%02x")
118JMESSAGE(JERR_VIRTUAL_BUG,
"Virtual array controller messed up")
119JMESSAGE(JERR_WIDTH_OVERFLOW,
"Image too wide for this implementation")
120JMESSAGE(JERR_XMS_READ,
"Read from XMS failed")
121JMESSAGE(JERR_XMS_WRITE,
"Write to XMS failed")
125 "Caution: quantization tables are too coarse for baseline JPEG")
127 "Adobe APP14 marker: version %d, flags 0x%04x 0x%04x, transform %d")
128JMESSAGE(JTRC_APP0,
"Unknown APP0 marker (not JFIF), length %u")
129JMESSAGE(JTRC_APP14,
"Unknown APP14 marker (not Adobe), length %u")
130JMESSAGE(JTRC_DAC,
"Define Arithmetic Table 0x%02x: 0x%02x")
131JMESSAGE(JTRC_DHT,
"Define Huffman Table 0x%02x")
132JMESSAGE(JTRC_DQT,
"Define Quantization Table %d precision %d")
133JMESSAGE(JTRC_DRI,
"Define Restart Interval %u")
134JMESSAGE(JTRC_EMS_CLOSE,
"Freed EMS handle %u")
135JMESSAGE(JTRC_EMS_OPEN,
"Obtained EMS handle %u")
137JMESSAGE(JTRC_HUFFBITS,
" %3d %3d %3d %3d %3d %3d %3d %3d")
138JMESSAGE(JTRC_JFIF,
"JFIF APP0 marker: version %d.%02d, density %dx%d %d")
140 "Warning: thumbnail image size does not match data length %u")
142 "JFIF extension marker: type 0x%02x, length %u")
143JMESSAGE(JTRC_JFIF_THUMBNAIL,
" with %d x %d thumbnail image")
144JMESSAGE(JTRC_MISC_MARKER,
"Miscellaneous marker 0x%02x, length %u")
145JMESSAGE(JTRC_PARMLESS_MARKER,
"Unexpected marker 0x%02x")
146JMESSAGE(JTRC_QUANTVALS,
" %4u %4u %4u %4u %4u %4u %4u %4u")
147JMESSAGE(JTRC_QUANT_3_NCOLORS,
"Quantizing to %d = %d*%d*%d colors")
148JMESSAGE(JTRC_QUANT_NCOLORS,
"Quantizing to %d colors")
149JMESSAGE(JTRC_QUANT_SELECTED,
"Selected %d colors for quantization")
150JMESSAGE(JTRC_RECOVERY_ACTION,
"At marker 0x%02x, recovery action %d")
153 "Smoothing not supported with nonstandard sampling ratios")
154JMESSAGE(JTRC_SOF,
"Start Of Frame 0x%02x: width=%u, height=%u, components=%d")
155JMESSAGE(JTRC_SOF_COMPONENT,
" Component %d: %dhx%dv q=%d")
157JMESSAGE(JTRC_SOS,
"Start Of Scan: %d components")
158JMESSAGE(JTRC_SOS_COMPONENT,
" Component %d: dc=%d ac=%d")
159JMESSAGE(JTRC_SOS_PARAMS,
" Ss=%d, Se=%d, Ah=%d, Al=%d")
160JMESSAGE(JTRC_TFILE_CLOSE,
"Closed temporary file %s")
161JMESSAGE(JTRC_TFILE_OPEN,
"Opened temporary file %s")
163 "JFIF extension marker: JPEG-compressed thumbnail image, length %u")
165 "JFIF extension marker: palette thumbnail image, length %u")
167 "JFIF extension marker: RGB thumbnail image, length %u")
169 "Unrecognized component IDs %d %d %d, assuming YCbCr")
170JMESSAGE(JTRC_XMS_CLOSE,
"Freed XMS handle %u")
171JMESSAGE(JTRC_XMS_OPEN,
"Obtained XMS handle %u")
172JMESSAGE(JWRN_ADOBE_XFORM,
"Unknown Adobe color transform code %d")
174 "Inconsistent progression sequence for component %d coefficient %d")
176 "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x")
177JMESSAGE(JWRN_HIT_MARKER,
"Corrupt JPEG data: premature end of data segment")
178JMESSAGE(JWRN_HUFF_BAD_CODE,
"Corrupt JPEG data: bad Huffman code")
179JMESSAGE(JWRN_JFIF_MAJOR,
"Warning: unknown JFIF revision number %d.%02d")
180JMESSAGE(JWRN_JPEG_EOF,
"Premature end of JPEG file")
182 "Corrupt JPEG data: found marker 0x%02x instead of RST%d")
183JMESSAGE(JWRN_NOT_SEQUENTIAL,
"Invalid SOS parameters for sequential JPEG")
184JMESSAGE(JWRN_TOO_MUCH_DATA,
"Application transferred too many scanlines")
186#ifdef JMAKE_ENUM_LIST