| Index: jerror.h
|
| diff --git a/jerror.h b/jerror.h
|
| index 275086e675e987fdc5b054f9ac48f8cd344de149..11a07cb5d0485f4af67235581bfafdb16fd27d23 100644
|
| --- a/jerror.h
|
| +++ b/jerror.h
|
| @@ -1,10 +1,13 @@
|
| /*
|
| * jerror.h
|
| *
|
| + * This file was part of the Independent JPEG Group's software:
|
| * Copyright (C) 1994-1997, Thomas G. Lane.
|
| * Modified 1997-2009 by Guido Vollbeding.
|
| - * This file is part of the Independent JPEG Group's software.
|
| - * For conditions of distribution and use, see the accompanying README file.
|
| + * libjpeg-turbo Modifications:
|
| + * Copyright (C) 2014, D. R. Commander.
|
| + * For conditions of distribution and use, see the accompanying README.ijg
|
| + * file.
|
| *
|
| * This file defines the error and message codes for the JPEG library.
|
| * Edit this file to add new codes, or to translate the message strings to
|
| @@ -33,7 +36,7 @@
|
|
|
| typedef enum {
|
|
|
| -#define JMESSAGE(code,string) code ,
|
| +#define JMESSAGE(code,string) code ,
|
|
|
| #endif /* JMAKE_ENUM_LIST */
|
|
|
| @@ -42,7 +45,7 @@ JMESSAGE(JMSG_NOMESSAGE, "Bogus message code %d") /* Must be first entry! */
|
| /* For maintenance convenience, list is alphabetical by message code name */
|
| #if JPEG_LIB_VERSION < 70
|
| JMESSAGE(JERR_ARITH_NOTIMPL,
|
| - "Sorry, arithmetic coding is not implemented")
|
| + "Sorry, arithmetic coding is not implemented")
|
| #endif
|
| JMESSAGE(JERR_BAD_ALIGN_TYPE, "ALIGN_TYPE is wrong, please fix")
|
| JMESSAGE(JERR_BAD_ALLOC_CHUNK, "MAX_ALLOC_CHUNK is wrong, please fix")
|
| @@ -55,26 +58,26 @@ JMESSAGE(JERR_BAD_DCT_COEF, "DCT coefficient out of range")
|
| JMESSAGE(JERR_BAD_DCTSIZE, "IDCT output block size %d not supported")
|
| #if JPEG_LIB_VERSION >= 70
|
| JMESSAGE(JERR_BAD_DROP_SAMPLING,
|
| - "Component index %d: mismatching sampling ratio %d:%d, %d:%d, %c")
|
| + "Component index %d: mismatching sampling ratio %d:%d, %d:%d, %c")
|
| #endif
|
| JMESSAGE(JERR_BAD_HUFF_TABLE, "Bogus Huffman table definition")
|
| JMESSAGE(JERR_BAD_IN_COLORSPACE, "Bogus input colorspace")
|
| JMESSAGE(JERR_BAD_J_COLORSPACE, "Bogus JPEG colorspace")
|
| JMESSAGE(JERR_BAD_LENGTH, "Bogus marker length")
|
| JMESSAGE(JERR_BAD_LIB_VERSION,
|
| - "Wrong JPEG library version: library is %d, caller expects %d")
|
| + "Wrong JPEG library version: library is %d, caller expects %d")
|
| JMESSAGE(JERR_BAD_MCU_SIZE, "Sampling factors too large for interleaved scan")
|
| JMESSAGE(JERR_BAD_POOL_ID, "Invalid memory pool code %d")
|
| JMESSAGE(JERR_BAD_PRECISION, "Unsupported JPEG data precision %d")
|
| JMESSAGE(JERR_BAD_PROGRESSION,
|
| - "Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d")
|
| + "Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d")
|
| JMESSAGE(JERR_BAD_PROG_SCRIPT,
|
| - "Invalid progressive parameters at scan script entry %d")
|
| + "Invalid progressive parameters at scan script entry %d")
|
| JMESSAGE(JERR_BAD_SAMPLING, "Bogus sampling factors")
|
| JMESSAGE(JERR_BAD_SCAN_SCRIPT, "Invalid scan script at entry %d")
|
| JMESSAGE(JERR_BAD_STATE, "Improper call to JPEG library in state %d")
|
| JMESSAGE(JERR_BAD_STRUCT_SIZE,
|
| - "JPEG parameter struct mismatch: library thinks size is %u, caller expects %u")
|
| + "JPEG parameter struct mismatch: library thinks size is %u, caller expects %u")
|
| JMESSAGE(JERR_BAD_VIRTUAL_ACCESS, "Bogus virtual array access")
|
| JMESSAGE(JERR_BUFFER_SIZE, "Buffer passed to JPEG library is too small")
|
| JMESSAGE(JERR_CANT_SUSPEND, "Suspension not allowed here")
|
| @@ -98,7 +101,7 @@ JMESSAGE(JERR_IMAGE_TOO_BIG, "Maximum supported image dimension is %u pixels")
|
| JMESSAGE(JERR_INPUT_EMPTY, "Empty input file")
|
| JMESSAGE(JERR_INPUT_EOF, "Premature end of input file")
|
| JMESSAGE(JERR_MISMATCHED_QUANT_TABLE,
|
| - "Cannot transcode due to multiple use of quantization table %d")
|
| + "Cannot transcode due to multiple use of quantization table %d")
|
| JMESSAGE(JERR_MISSING_DATA, "Scan script does not transmit all data")
|
| JMESSAGE(JERR_MODE_CHANGE, "Invalid color quantization mode change")
|
| JMESSAGE(JERR_NOTIMPL, "Not implemented yet")
|
| @@ -113,7 +116,7 @@ JMESSAGE(JERR_NO_QUANT_TABLE, "Quantization table 0x%02x was not defined")
|
| JMESSAGE(JERR_NO_SOI, "Not a JPEG file: starts with 0x%02x 0x%02x")
|
| JMESSAGE(JERR_OUT_OF_MEMORY, "Insufficient memory (case %d)")
|
| JMESSAGE(JERR_QUANT_COMPONENTS,
|
| - "Cannot quantize more than %d color components")
|
| + "Cannot quantize more than %d color components")
|
| JMESSAGE(JERR_QUANT_FEW_COLORS, "Cannot quantize to fewer than %d colors")
|
| JMESSAGE(JERR_QUANT_MANY_COLORS, "Cannot quantize to more than %d colors")
|
| JMESSAGE(JERR_SOF_DUPLICATE, "Invalid JPEG file structure: two SOF markers")
|
| @@ -125,19 +128,19 @@ JMESSAGE(JERR_TFILE_CREATE, "Failed to create temporary file %s")
|
| JMESSAGE(JERR_TFILE_READ, "Read failed on temporary file")
|
| JMESSAGE(JERR_TFILE_SEEK, "Seek failed on temporary file")
|
| JMESSAGE(JERR_TFILE_WRITE,
|
| - "Write failed on temporary file --- out of disk space?")
|
| + "Write failed on temporary file --- out of disk space?")
|
| JMESSAGE(JERR_TOO_LITTLE_DATA, "Application transferred too few scanlines")
|
| JMESSAGE(JERR_UNKNOWN_MARKER, "Unsupported marker type 0x%02x")
|
| JMESSAGE(JERR_VIRTUAL_BUG, "Virtual array controller messed up")
|
| JMESSAGE(JERR_WIDTH_OVERFLOW, "Image too wide for this implementation")
|
| JMESSAGE(JERR_XMS_READ, "Read from XMS failed")
|
| JMESSAGE(JERR_XMS_WRITE, "Write to XMS failed")
|
| -JMESSAGE(JMSG_COPYRIGHT, JCOPYRIGHT)
|
| +JMESSAGE(JMSG_COPYRIGHT, JCOPYRIGHT_SHORT)
|
| JMESSAGE(JMSG_VERSION, JVERSION)
|
| JMESSAGE(JTRC_16BIT_TABLES,
|
| - "Caution: quantization tables are too coarse for baseline JPEG")
|
| + "Caution: quantization tables are too coarse for baseline JPEG")
|
| JMESSAGE(JTRC_ADOBE,
|
| - "Adobe APP14 marker: version %d, flags 0x%04x 0x%04x, transform %d")
|
| + "Adobe APP14 marker: version %d, flags 0x%04x 0x%04x, transform %d")
|
| JMESSAGE(JTRC_APP0, "Unknown APP0 marker (not JFIF), length %u")
|
| JMESSAGE(JTRC_APP14, "Unknown APP14 marker (not Adobe), length %u")
|
| JMESSAGE(JTRC_DAC, "Define Arithmetic Table 0x%02x: 0x%02x")
|
| @@ -150,9 +153,9 @@ JMESSAGE(JTRC_EOI, "End Of Image")
|
| JMESSAGE(JTRC_HUFFBITS, " %3d %3d %3d %3d %3d %3d %3d %3d")
|
| JMESSAGE(JTRC_JFIF, "JFIF APP0 marker: version %d.%02d, density %dx%d %d")
|
| JMESSAGE(JTRC_JFIF_BADTHUMBNAILSIZE,
|
| - "Warning: thumbnail image size does not match data length %u")
|
| + "Warning: thumbnail image size does not match data length %u")
|
| JMESSAGE(JTRC_JFIF_EXTENSION,
|
| - "JFIF extension marker: type 0x%02x, length %u")
|
| + "JFIF extension marker: type 0x%02x, length %u")
|
| JMESSAGE(JTRC_JFIF_THUMBNAIL, " with %d x %d thumbnail image")
|
| JMESSAGE(JTRC_MISC_MARKER, "Miscellaneous marker 0x%02x, length %u")
|
| JMESSAGE(JTRC_PARMLESS_MARKER, "Unexpected marker 0x%02x")
|
| @@ -163,7 +166,7 @@ JMESSAGE(JTRC_QUANT_SELECTED, "Selected %d colors for quantization")
|
| JMESSAGE(JTRC_RECOVERY_ACTION, "At marker 0x%02x, recovery action %d")
|
| JMESSAGE(JTRC_RST, "RST%d")
|
| JMESSAGE(JTRC_SMOOTH_NOTIMPL,
|
| - "Smoothing not supported with nonstandard sampling ratios")
|
| + "Smoothing not supported with nonstandard sampling ratios")
|
| JMESSAGE(JTRC_SOF, "Start Of Frame 0x%02x: width=%u, height=%u, components=%d")
|
| JMESSAGE(JTRC_SOF_COMPONENT, " Component %d: %dhx%dv q=%d")
|
| JMESSAGE(JTRC_SOI, "Start of Image")
|
| @@ -173,13 +176,13 @@ JMESSAGE(JTRC_SOS_PARAMS, " Ss=%d, Se=%d, Ah=%d, Al=%d")
|
| JMESSAGE(JTRC_TFILE_CLOSE, "Closed temporary file %s")
|
| JMESSAGE(JTRC_TFILE_OPEN, "Opened temporary file %s")
|
| JMESSAGE(JTRC_THUMB_JPEG,
|
| - "JFIF extension marker: JPEG-compressed thumbnail image, length %u")
|
| + "JFIF extension marker: JPEG-compressed thumbnail image, length %u")
|
| JMESSAGE(JTRC_THUMB_PALETTE,
|
| - "JFIF extension marker: palette thumbnail image, length %u")
|
| + "JFIF extension marker: palette thumbnail image, length %u")
|
| JMESSAGE(JTRC_THUMB_RGB,
|
| - "JFIF extension marker: RGB thumbnail image, length %u")
|
| + "JFIF extension marker: RGB thumbnail image, length %u")
|
| JMESSAGE(JTRC_UNKNOWN_IDS,
|
| - "Unrecognized component IDs %d %d %d, assuming YCbCr")
|
| + "Unrecognized component IDs %d %d %d, assuming YCbCr")
|
| JMESSAGE(JTRC_XMS_CLOSE, "Freed XMS handle %u")
|
| JMESSAGE(JTRC_XMS_OPEN, "Obtained XMS handle %u")
|
| JMESSAGE(JWRN_ADOBE_XFORM, "Unknown Adobe color transform code %d")
|
| @@ -187,15 +190,15 @@ JMESSAGE(JWRN_ADOBE_XFORM, "Unknown Adobe color transform code %d")
|
| JMESSAGE(JWRN_ARITH_BAD_CODE, "Corrupt JPEG data: bad arithmetic code")
|
| #endif
|
| JMESSAGE(JWRN_BOGUS_PROGRESSION,
|
| - "Inconsistent progression sequence for component %d coefficient %d")
|
| + "Inconsistent progression sequence for component %d coefficient %d")
|
| JMESSAGE(JWRN_EXTRANEOUS_DATA,
|
| - "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x")
|
| + "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x")
|
| JMESSAGE(JWRN_HIT_MARKER, "Corrupt JPEG data: premature end of data segment")
|
| JMESSAGE(JWRN_HUFF_BAD_CODE, "Corrupt JPEG data: bad Huffman code")
|
| JMESSAGE(JWRN_JFIF_MAJOR, "Warning: unknown JFIF revision number %d.%02d")
|
| JMESSAGE(JWRN_JPEG_EOF, "Premature end of JPEG file")
|
| JMESSAGE(JWRN_MUST_RESYNC,
|
| - "Corrupt JPEG data: found marker 0x%02x instead of RST%d")
|
| + "Corrupt JPEG data: found marker 0x%02x instead of RST%d")
|
| JMESSAGE(JWRN_NOT_SEQUENTIAL, "Invalid SOS parameters for sequential JPEG")
|
| JMESSAGE(JWRN_TOO_MUCH_DATA, "Application transferred too many scanlines")
|
| #if JPEG_LIB_VERSION < 70
|
| @@ -255,7 +258,7 @@ JMESSAGE(JWRN_ARITH_BAD_CODE, "Corrupt JPEG data: bad arithmetic code")
|
| strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
|
| (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
|
|
|
| -#define MAKESTMT(stuff) do { stuff } while (0)
|
| +#define MAKESTMT(stuff) do { stuff } while (0)
|
|
|
| /* Nonfatal errors (we can keep going, but the data is probably corrupt) */
|
| #define WARNMS(cinfo,code) \
|
| @@ -286,26 +289,26 @@ JMESSAGE(JWRN_ARITH_BAD_CODE, "Corrupt JPEG data: bad arithmetic code")
|
| (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
|
| #define TRACEMS3(cinfo,lvl,code,p1,p2,p3) \
|
| MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
|
| - _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); \
|
| - (cinfo)->err->msg_code = (code); \
|
| - (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| + _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); \
|
| + (cinfo)->err->msg_code = (code); \
|
| + (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| #define TRACEMS4(cinfo,lvl,code,p1,p2,p3,p4) \
|
| MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
|
| - _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
|
| - (cinfo)->err->msg_code = (code); \
|
| - (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| + _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
|
| + (cinfo)->err->msg_code = (code); \
|
| + (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| #define TRACEMS5(cinfo,lvl,code,p1,p2,p3,p4,p5) \
|
| MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
|
| - _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
|
| - _mp[4] = (p5); \
|
| - (cinfo)->err->msg_code = (code); \
|
| - (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| + _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
|
| + _mp[4] = (p5); \
|
| + (cinfo)->err->msg_code = (code); \
|
| + (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| #define TRACEMS8(cinfo,lvl,code,p1,p2,p3,p4,p5,p6,p7,p8) \
|
| MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
|
| - _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
|
| - _mp[4] = (p5); _mp[5] = (p6); _mp[6] = (p7); _mp[7] = (p8); \
|
| - (cinfo)->err->msg_code = (code); \
|
| - (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| + _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
|
| + _mp[4] = (p5); _mp[5] = (p6); _mp[6] = (p7); _mp[7] = (p8); \
|
| + (cinfo)->err->msg_code = (code); \
|
| + (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
|
| #define TRACEMSS(cinfo,lvl,code,str) \
|
| ((cinfo)->err->msg_code = (code), \
|
| strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
|
|
|