18 #define JMAKE_ENUM_LIST 21 #define JMESSAGE(code, string) 25 #ifdef JMAKE_ENUM_LIST 29 #define JMESSAGE(code, string) code, 33 JMESSAGE(JMSG_NOMESSAGE,
"Bogus message code %d")
38 "Sorry, there are legal restrictions on arithmetic coding")
42 JERR_BAD_COMPONENT_ID,
43 "Invalid component ID %d
in "
48 "IDCT output block
size %d not supported")
51 "Bogus Huffman
table definition")
53 JERR_BAD_IN_COLORSPACE,
54 "Bogus
input colorspace")
56 JERR_BAD_J_COLORSPACE,
57 "Bogus JPEG colorspace")
59 JERR_BAD_LENGTH, "Bogus marker
length")
62 "Wrong JPEG library version: "
63 "library is %d, caller expects %d")
66 "Sampling factors too large "
67 "
for interleaved scan")
70 "Invalid memory pool
code "
74 "Unsupported JPEG
data "
127 JERR_BAD_STRUCT_SIZE,
128 "JPEG parameter struct mismatch: library thinks
size is %u, caller expects %u")
130 JERR_BAD_VIRTUAL_ACCESS,
131 "Bogus virtual array access")
134 "Buffer passed to JPEG library is too small")
137 "Suspension not allowed here")
139 JERR_CCIR601_NOTIMPL,
140 "CCIR601 sampling not implemented yet")
142 JERR_COMPONENT_COUNT,
145 JERR_CONVERSION_NOTIMPL,
146 "Unsupported
color conversion request")
149 "Bogus DAC
index %d")
155 "Bogus DHT
index %d")
158 "Bogus DQT
index %d")
161 "Empty JPEG
image (DNL not supported)")
164 "Read from EMS failed")
167 "Write to EMS failed")
170 "Didn'
t expect more than one scan")
173 "Input file read
error")
176 "Output file write
error --- out of disk space?")
178 JERR_FRACT_SAMPLE_NOTIMPL,
179 "Fractional sampling not implemented yet")
181 JERR_HUFF_CLEN_OVERFLOW,
184 JERR_HUFF_MISSING_CODE,
196 JERR_MISMATCHED_QUANT_TABLE,
197 "Cannot transcode due to multiple use of quantization
table %d")
200 "Scan script does not transmit all
data")
203 "Invalid
color quantization
mode change")
206 "Not implemented yet")
209 "Requested
feature was omitted at compile time")
211 JERR_NO_BACKING_STORE,
212 "Backing store not supported")
215 "Huffman
table 0
x%02
x was not defined")
218 "JPEG datastream contains no
image")
221 "Quantization
table 0
x%02
x was not defined")
224 "Not
a JPEG file: starts with 0
x%02
x 0
x%02
x")
227 "Insufficient memory (case %d)")
229 JERR_QUANT_COMPONENTS,
232 JERR_QUANT_FEW_COLORS,
233 "Cannot quantize to fewer than %d colors")
235 JERR_QUANT_MANY_COLORS,
236 "Cannot quantize to more than %d colors")
239 "Invalid JPEG file structure: two SOF markers")
242 "Invalid JPEG file structure: missing SOS marker")
244 JERR_SOF_UNSUPPORTED,
245 "Unsupported JPEG process: SOF
type 0
x%02
x")
248 "Invalid JPEG file structure: two SOI markers")
251 "Invalid JPEG file structure: SOS before SOF")
254 "Failed to create temporary file %
s")
257 "Read failed on temporary file")
260 "Seek failed on temporary file")
263 "Write failed on temporary file --- out of disk space?")
265 JERR_TOO_LITTLE_DATA,
266 "Application transferred too few scanlines")
269 "Unsupported marker
type 0
x%02
x")
272 "Virtual array controller messed up")
275 "Image too wide
for this implementation")
278 "Read from XMS failed")
281 "Write to XMS failed")
287 "Caution: quantization tables are too coarse
for baseline JPEG")
290 "Adobe APP14 marker: version %d, flags 0
x%04
x 0
x%04
x,
transform %d")
293 "Unknown APP0 marker (not JFIF),
length %u")
296 "Unknown APP14 marker (not Adobe),
length %u")
299 "Define Arithmetic Table 0
x%02
x: 0
x%02
x")
302 "Define Huffman Table 0
x%02
x")
305 "Define Quantization Table %d precision %d")
308 "Define Restart Interval %u")
311 "Freed EMS handle %u")
314 "Obtained EMS handle %u")
320 " %3d %3d %3d %3d %3d %3d %3d %3d")
323 "JFIF APP0 marker: version %d.%02d, density %dx%d %d")
325 JTRC_JFIF_BADTHUMBNAILSIZE,
332 " with %d
x %d thumbnail
image")
335 "Miscellaneous marker 0
x%02
x,
length %u")
337 JTRC_PARMLESS_MARKER,
338 "Unexpected marker 0
x%02
x")
341 " %4u %4u %4u %4u %4u %4u %4u %4u")
343 JTRC_QUANT_3_NCOLORS,
344 "Quantizing to %d = %d*%d*%d colors")
347 "Quantizing to %d colors")
350 "Selected %d colors
for quantization")
352 JTRC_RECOVERY_ACTION,
353 "At marker 0
x%02
x, recovery action %d")
359 "Smoothing not supported with nonstandard sampling ratios")
365 " Component %d: %dhx%dv
q=%d")
374 " Component %d: dc=%d ac=%d")
377 " Ss=%d, Se=%d, Ah=%d, Al=%d")
380 "Closed temporary file %
s")
383 "Opened temporary file %
s")
386 "JFIF extension marker: JPEG-compressed thumbnail
image,
length %u")
389 "JFIF extension marker: palette thumbnail
image,
length %u")
392 "JFIF extension marker: RGB thumbnail
image,
length %u")
395 "Unrecognized component IDs %d %d %d, assuming YCbCr")
398 "Freed XMS handle %u")
401 "Obtained XMS handle %u")
406 JWRN_BOGUS_PROGRESSION,
407 "Inconsistent progression sequence
for component %d coefficient %d")
409 JWRN_EXTRANEOUS_DATA,
410 "Corrupt JPEG
data: %u extraneous bytes before marker 0
x%02
x")
413 "Corrupt JPEG
data: premature
end of
data segment")
416 "Corrupt JPEG
data: bad Huffman
code")
419 "Warning: unknown JFIF revision number %d.%02d")
422 "Premature
end of JPEG file")
425 "Corrupt JPEG
data: found marker 0
x%02
x instead of RST%d")
428 "Invalid SOS parameters
for sequential JPEG")
431 "Application transferred too many scanlines")
433 #ifdef JMAKE_ENUM_LIST 438 #undef JMAKE_ENUM_LIST 451 #define ERREXIT(cinfo, code) \ 452 ((cinfo)->err->msg_code = (code), \ 453 (*(cinfo)->err->error_exit)((j_common_ptr)(cinfo))) 454 #define ERREXIT1(cinfo, code, p1) \ 455 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 456 (*(cinfo)->err->error_exit)((j_common_ptr)(cinfo))) 457 #define ERREXIT2(cinfo, code, p1, p2) \ 458 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 459 (cinfo)->err->msg_parm.i[1] = (p2), \ 460 (*(cinfo)->err->error_exit)((j_common_ptr)(cinfo))) 461 #define ERREXIT3(cinfo, code, p1, p2, p3) \ 462 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 463 (cinfo)->err->msg_parm.i[1] = (p2), (cinfo)->err->msg_parm.i[2] = (p3), \ 464 (*(cinfo)->err->error_exit)((j_common_ptr)(cinfo))) 465 #define ERREXIT4(cinfo, code, p1, p2, p3, p4) \ 466 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 467 (cinfo)->err->msg_parm.i[1] = (p2), (cinfo)->err->msg_parm.i[2] = (p3), \ 468 (cinfo)->err->msg_parm.i[3] = (p4), \ 469 (*(cinfo)->err->error_exit)((j_common_ptr)(cinfo))) 470 #define ERREXITS(cinfo, code, str) \ 471 ((cinfo)->err->msg_code = (code), \ 472 strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ 473 (*(cinfo)->err->error_exit)((j_common_ptr)(cinfo))) 475 #define MAKESTMT(stuff) \ 482 #define WARNMS(cinfo, code) \ 483 ((cinfo)->err->msg_code = (code), \ 484 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), -1)) 485 #define WARNMS1(cinfo, code, p1) \ 486 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 487 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), -1)) 488 #define WARNMS2(cinfo, code, p1, p2) \ 489 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 490 (cinfo)->err->msg_parm.i[1] = (p2), \ 491 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), -1)) 494 #define TRACEMS(cinfo, lvl, code) \ 495 ((cinfo)->err->msg_code = (code), \ 496 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl))) 497 #define TRACEMS1(cinfo, lvl, code, p1) \ 498 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 499 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl))) 500 #define TRACEMS2(cinfo, lvl, code, p1, p2) \ 501 ((cinfo)->err->msg_code = (code), (cinfo)->err->msg_parm.i[0] = (p1), \ 502 (cinfo)->err->msg_parm.i[1] = (p2), \ 503 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl))) 504 #define TRACEMS3(cinfo, lvl, code, p1, p2, p3) \ 506 int* _mp = (cinfo)->err->msg_parm.i; _mp[0] = (p1); _mp[1] = (p2); \ 507 _mp[2] = (p3); (cinfo)->err->msg_code = (code); \ 508 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl));) 509 #define TRACEMS4(cinfo, lvl, code, p1, p2, p3, p4) \ 511 int* _mp = (cinfo)->err->msg_parm.i; _mp[0] = (p1); _mp[1] = (p2); \ 512 _mp[2] = (p3); _mp[3] = (p4); (cinfo)->err->msg_code = (code); \ 513 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl));) 514 #define TRACEMS5(cinfo, lvl, code, p1, p2, p3, p4, p5) \ 516 int* _mp = (cinfo)->err->msg_parm.i; _mp[0] = (p1); _mp[1] = (p2); \ 517 _mp[2] = (p3); _mp[3] = (p4); _mp[4] = (p5); \ 518 (cinfo)->err->msg_code = (code); \ 519 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl));) 520 #define TRACEMS8(cinfo, lvl, code, p1, p2, p3, p4, p5, p6, p7, p8) \ 522 int* _mp = (cinfo)->err->msg_parm.i; _mp[0] = (p1); _mp[1] = (p2); \ 523 _mp[2] = (p3); _mp[3] = (p4); _mp[4] = (p5); _mp[5] = (p6); \ 524 _mp[6] = (p7); _mp[7] = (p8); (cinfo)->err->msg_code = (code); \ 525 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl));) 526 #define TRACEMSS(cinfo, lvl, code, str) \ 527 ((cinfo)->err->msg_code = (code), \ 528 strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \ 529 (*(cinfo)->err->emit_message)((j_common_ptr)(cinfo), (lvl)))
GLdouble GLdouble GLdouble GLdouble q
#define JMESSAGE(code, string)
GLenum GLsizei GLenum GLenum const GLvoid * table
GLenum GLsizei GLenum GLenum const GLvoid * image
for(ctr=DCTSIZE;ctr > 0;ctr--)
GLenum GLenum GLuint components
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Structure to represent an affine invariant image feature.
GLuint GLsizei GLsizei * length
GLenum GLenum GLenum input
GLsizei const GLfloat * value
GLuint GLenum GLenum transform
GLenum GLsizei GLsizei height
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLubyte GLubyte GLubyte a
GLuint GLuint GLsizei GLenum type
int fix(T x)
Rounds toward zero.