src/3rdparty/libjpeg/jerror.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
     1 /*
     1 /*
     2  * jerror.h
     2  * jerror.h
     3  *
     3  *
     4  * Copyright (C) 1994-1997, Thomas G. Lane.
     4  * Copyright (C) 1994-1997, Thomas G. Lane.
       
     5  * Modified 1997-2009 by Guido Vollbeding.
     5  * This file is part of the Independent JPEG Group's software.
     6  * This file is part of the Independent JPEG Group's software.
     6  * For conditions of distribution and use, see the accompanying README file.
     7  * For conditions of distribution and use, see the accompanying README file.
     7  *
     8  *
     8  * This file defines the error and message codes for the JPEG library.
     9  * This file defines the error and message codes for the JPEG library.
     9  * Edit this file to add new codes, or to translate the message strings to
    10  * Edit this file to add new codes, or to translate the message strings to
    37 #endif /* JMAKE_ENUM_LIST */
    38 #endif /* JMAKE_ENUM_LIST */
    38 
    39 
    39 JMESSAGE(JMSG_NOMESSAGE, "Bogus message code %d") /* Must be first entry! */
    40 JMESSAGE(JMSG_NOMESSAGE, "Bogus message code %d") /* Must be first entry! */
    40 
    41 
    41 /* For maintenance convenience, list is alphabetical by message code name */
    42 /* For maintenance convenience, list is alphabetical by message code name */
    42 JMESSAGE(JERR_ARITH_NOTIMPL,
       
    43 	 "Sorry, there are legal restrictions on arithmetic coding")
       
    44 JMESSAGE(JERR_BAD_ALIGN_TYPE, "ALIGN_TYPE is wrong, please fix")
    43 JMESSAGE(JERR_BAD_ALIGN_TYPE, "ALIGN_TYPE is wrong, please fix")
    45 JMESSAGE(JERR_BAD_ALLOC_CHUNK, "MAX_ALLOC_CHUNK is wrong, please fix")
    44 JMESSAGE(JERR_BAD_ALLOC_CHUNK, "MAX_ALLOC_CHUNK is wrong, please fix")
    46 JMESSAGE(JERR_BAD_BUFFER_MODE, "Bogus buffer control mode")
    45 JMESSAGE(JERR_BAD_BUFFER_MODE, "Bogus buffer control mode")
    47 JMESSAGE(JERR_BAD_COMPONENT_ID, "Invalid component ID %d in SOS")
    46 JMESSAGE(JERR_BAD_COMPONENT_ID, "Invalid component ID %d in SOS")
       
    47 JMESSAGE(JERR_BAD_CROP_SPEC, "Invalid crop request")
    48 JMESSAGE(JERR_BAD_DCT_COEF, "DCT coefficient out of range")
    48 JMESSAGE(JERR_BAD_DCT_COEF, "DCT coefficient out of range")
    49 JMESSAGE(JERR_BAD_DCTSIZE, "IDCT output block size %d not supported")
    49 JMESSAGE(JERR_BAD_DCTSIZE, "DCT scaled block size %dx%d not supported")
       
    50 JMESSAGE(JERR_BAD_DROP_SAMPLING,
       
    51 	 "Component index %d: mismatching sampling ratio %d:%d, %d:%d, %c")
    50 JMESSAGE(JERR_BAD_HUFF_TABLE, "Bogus Huffman table definition")
    52 JMESSAGE(JERR_BAD_HUFF_TABLE, "Bogus Huffman table definition")
    51 JMESSAGE(JERR_BAD_IN_COLORSPACE, "Bogus input colorspace")
    53 JMESSAGE(JERR_BAD_IN_COLORSPACE, "Bogus input colorspace")
    52 JMESSAGE(JERR_BAD_J_COLORSPACE, "Bogus JPEG colorspace")
    54 JMESSAGE(JERR_BAD_J_COLORSPACE, "Bogus JPEG colorspace")
    53 JMESSAGE(JERR_BAD_LENGTH, "Bogus marker length")
    55 JMESSAGE(JERR_BAD_LENGTH, "Bogus marker length")
    54 JMESSAGE(JERR_BAD_LIB_VERSION,
    56 JMESSAGE(JERR_BAD_LIB_VERSION,
    91 	 "Cannot transcode due to multiple use of quantization table %d")
    93 	 "Cannot transcode due to multiple use of quantization table %d")
    92 JMESSAGE(JERR_MISSING_DATA, "Scan script does not transmit all data")
    94 JMESSAGE(JERR_MISSING_DATA, "Scan script does not transmit all data")
    93 JMESSAGE(JERR_MODE_CHANGE, "Invalid color quantization mode change")
    95 JMESSAGE(JERR_MODE_CHANGE, "Invalid color quantization mode change")
    94 JMESSAGE(JERR_NOTIMPL, "Not implemented yet")
    96 JMESSAGE(JERR_NOTIMPL, "Not implemented yet")
    95 JMESSAGE(JERR_NOT_COMPILED, "Requested feature was omitted at compile time")
    97 JMESSAGE(JERR_NOT_COMPILED, "Requested feature was omitted at compile time")
       
    98 JMESSAGE(JERR_NO_ARITH_TABLE, "Arithmetic table 0x%02x was not defined")
    96 JMESSAGE(JERR_NO_BACKING_STORE, "Backing store not supported")
    99 JMESSAGE(JERR_NO_BACKING_STORE, "Backing store not supported")
    97 JMESSAGE(JERR_NO_HUFF_TABLE, "Huffman table 0x%02x was not defined")
   100 JMESSAGE(JERR_NO_HUFF_TABLE, "Huffman table 0x%02x was not defined")
    98 JMESSAGE(JERR_NO_IMAGE, "JPEG datastream contains no image")
   101 JMESSAGE(JERR_NO_IMAGE, "JPEG datastream contains no image")
    99 JMESSAGE(JERR_NO_QUANT_TABLE, "Quantization table 0x%02x was not defined")
   102 JMESSAGE(JERR_NO_QUANT_TABLE, "Quantization table 0x%02x was not defined")
   100 JMESSAGE(JERR_NO_SOI, "Not a JPEG file: starts with 0x%02x 0x%02x")
   103 JMESSAGE(JERR_NO_SOI, "Not a JPEG file: starts with 0x%02x 0x%02x")
   168 JMESSAGE(JTRC_UNKNOWN_IDS,
   171 JMESSAGE(JTRC_UNKNOWN_IDS,
   169 	 "Unrecognized component IDs %d %d %d, assuming YCbCr")
   172 	 "Unrecognized component IDs %d %d %d, assuming YCbCr")
   170 JMESSAGE(JTRC_XMS_CLOSE, "Freed XMS handle %u")
   173 JMESSAGE(JTRC_XMS_CLOSE, "Freed XMS handle %u")
   171 JMESSAGE(JTRC_XMS_OPEN, "Obtained XMS handle %u")
   174 JMESSAGE(JTRC_XMS_OPEN, "Obtained XMS handle %u")
   172 JMESSAGE(JWRN_ADOBE_XFORM, "Unknown Adobe color transform code %d")
   175 JMESSAGE(JWRN_ADOBE_XFORM, "Unknown Adobe color transform code %d")
       
   176 JMESSAGE(JWRN_ARITH_BAD_CODE, "Corrupt JPEG data: bad arithmetic code")
   173 JMESSAGE(JWRN_BOGUS_PROGRESSION,
   177 JMESSAGE(JWRN_BOGUS_PROGRESSION,
   174 	 "Inconsistent progression sequence for component %d coefficient %d")
   178 	 "Inconsistent progression sequence for component %d coefficient %d")
   175 JMESSAGE(JWRN_EXTRANEOUS_DATA,
   179 JMESSAGE(JWRN_EXTRANEOUS_DATA,
   176 	 "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x")
   180 	 "Corrupt JPEG data: %u extraneous bytes before marker 0x%02x")
   177 JMESSAGE(JWRN_HIT_MARKER, "Corrupt JPEG data: premature end of data segment")
   181 JMESSAGE(JWRN_HIT_MARKER, "Corrupt JPEG data: premature end of data segment")
   224   ((cinfo)->err->msg_code = (code), \
   228   ((cinfo)->err->msg_code = (code), \
   225    (cinfo)->err->msg_parm.i[0] = (p1), \
   229    (cinfo)->err->msg_parm.i[0] = (p1), \
   226    (cinfo)->err->msg_parm.i[1] = (p2), \
   230    (cinfo)->err->msg_parm.i[1] = (p2), \
   227    (cinfo)->err->msg_parm.i[2] = (p3), \
   231    (cinfo)->err->msg_parm.i[2] = (p3), \
   228    (cinfo)->err->msg_parm.i[3] = (p4), \
   232    (cinfo)->err->msg_parm.i[3] = (p4), \
       
   233    (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
       
   234 #define ERREXIT6(cinfo,code,p1,p2,p3,p4,p5,p6)  \
       
   235   ((cinfo)->err->msg_code = (code), \
       
   236    (cinfo)->err->msg_parm.i[0] = (p1), \
       
   237    (cinfo)->err->msg_parm.i[1] = (p2), \
       
   238    (cinfo)->err->msg_parm.i[2] = (p3), \
       
   239    (cinfo)->err->msg_parm.i[3] = (p4), \
       
   240    (cinfo)->err->msg_parm.i[4] = (p5), \
       
   241    (cinfo)->err->msg_parm.i[5] = (p6), \
   229    (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
   242    (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
   230 #define ERREXITS(cinfo,code,str)  \
   243 #define ERREXITS(cinfo,code,str)  \
   231   ((cinfo)->err->msg_code = (code), \
   244   ((cinfo)->err->msg_code = (code), \
   232    strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
   245    strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
   233    (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
   246    (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))