cderror.h
Go to the documentation of this file.
00001 /*
00002  * cderror.h
00003  *
00004  * Copyright (C) 1994-1997, Thomas G. Lane.
00005  * This file is part of the Independent JPEG Group's software.
00006  * For conditions of distribution and use, see the accompanying README file.
00007  *
00008  * This file defines the error and message codes for the cjpeg/djpeg
00009  * applications.  These strings are not needed as part of the JPEG library
00010  * proper.
00011  * Edit this file to add new codes, or to translate the message strings to
00012  * some other language.
00013  */
00014 
00015 /*
00016  * To define the enum list of message codes, include this file without
00017  * defining macro JMESSAGE.  To create a message string table, include it
00018  * again with a suitable JMESSAGE definition (see jerror.c for an example).
00019  */
00020 #ifndef JMESSAGE
00021 #ifndef CDERROR_H
00022 #define CDERROR_H
00023 /* First time through, define the enum list */
00024 #define JMAKE_ENUM_LIST
00025 #else
00026 /* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
00027 #define JMESSAGE(code,string)
00028 #endif /* CDERROR_H */
00029 #endif /* JMESSAGE */
00030 
00031 #ifdef JMAKE_ENUM_LIST
00032 
00033 typedef enum {
00034 
00035 #define JMESSAGE(code,string)   code ,
00036 
00037 #endif /* JMAKE_ENUM_LIST */
00038 
00039 JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */
00040 
00041 #ifdef BMP_SUPPORTED
00042 JMESSAGE(JERR_BMP_BADCMAP, "Unsupported BMP colormap format")
00043 JMESSAGE(JERR_BMP_BADDEPTH, "Only 8- and 24-bit BMP files are supported")
00044 JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")
00045 JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")
00046 JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")
00047 JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")
00048 JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")
00049 JMESSAGE(JTRC_BMP, "%ux%u 24-bit BMP image")
00050 JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")
00051 JMESSAGE(JTRC_BMP_OS2, "%ux%u 24-bit OS2 BMP image")
00052 JMESSAGE(JTRC_BMP_OS2_MAPPED, "%ux%u 8-bit colormapped OS2 BMP image")
00053 #endif /* BMP_SUPPORTED */
00054 
00055 #ifdef GIF_SUPPORTED
00056 JMESSAGE(JERR_GIF_BUG, "GIF output got confused")
00057 JMESSAGE(JERR_GIF_CODESIZE, "Bogus GIF codesize %d")
00058 JMESSAGE(JERR_GIF_COLORSPACE, "GIF output must be grayscale or RGB")
00059 JMESSAGE(JERR_GIF_IMAGENOTFOUND, "Too few images in GIF file")
00060 JMESSAGE(JERR_GIF_NOT, "Not a GIF file")
00061 JMESSAGE(JTRC_GIF, "%ux%ux%d GIF image")
00062 JMESSAGE(JTRC_GIF_BADVERSION,
00063          "Warning: unexpected GIF version number '%c%c%c'")
00064 JMESSAGE(JTRC_GIF_EXTENSION, "Ignoring GIF extension block of type 0x%02x")
00065 JMESSAGE(JTRC_GIF_NONSQUARE, "Caution: nonsquare pixels in input")
00066 JMESSAGE(JWRN_GIF_BADDATA, "Corrupt data in GIF file")
00067 JMESSAGE(JWRN_GIF_CHAR, "Bogus char 0x%02x in GIF file, ignoring")
00068 JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")
00069 JMESSAGE(JWRN_GIF_NOMOREDATA, "Ran out of GIF bits")
00070 #endif /* GIF_SUPPORTED */
00071 
00072 #ifdef PPM_SUPPORTED
00073 JMESSAGE(JERR_PPM_COLORSPACE, "PPM output must be grayscale or RGB")
00074 JMESSAGE(JERR_PPM_NONNUMERIC, "Nonnumeric data in PPM file")
00075 JMESSAGE(JERR_PPM_NOT, "Not a PPM/PGM file")
00076 JMESSAGE(JTRC_PGM, "%ux%u PGM image")
00077 JMESSAGE(JTRC_PGM_TEXT, "%ux%u text PGM image")
00078 JMESSAGE(JTRC_PPM, "%ux%u PPM image")
00079 JMESSAGE(JTRC_PPM_TEXT, "%ux%u text PPM image")
00080 #endif /* PPM_SUPPORTED */
00081 
00082 #ifdef RLE_SUPPORTED
00083 JMESSAGE(JERR_RLE_BADERROR, "Bogus error code from RLE library")
00084 JMESSAGE(JERR_RLE_COLORSPACE, "RLE output must be grayscale or RGB")
00085 JMESSAGE(JERR_RLE_DIMENSIONS, "Image dimensions (%ux%u) too large for RLE")
00086 JMESSAGE(JERR_RLE_EMPTY, "Empty RLE file")
00087 JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")
00088 JMESSAGE(JERR_RLE_MEM, "Insufficient memory for RLE header")
00089 JMESSAGE(JERR_RLE_NOT, "Not an RLE file")
00090 JMESSAGE(JERR_RLE_TOOMANYCHANNELS, "Cannot handle %d output channels for RLE")
00091 JMESSAGE(JERR_RLE_UNSUPPORTED, "Cannot handle this RLE setup")
00092 JMESSAGE(JTRC_RLE, "%ux%u full-color RLE file")
00093 JMESSAGE(JTRC_RLE_FULLMAP, "%ux%u full-color RLE file with map of length %d")
00094 JMESSAGE(JTRC_RLE_GRAY, "%ux%u grayscale RLE file")
00095 JMESSAGE(JTRC_RLE_MAPGRAY, "%ux%u grayscale RLE file with map of length %d")
00096 JMESSAGE(JTRC_RLE_MAPPED, "%ux%u colormapped RLE file with map of length %d")
00097 #endif /* RLE_SUPPORTED */
00098 
00099 #ifdef TARGA_SUPPORTED
00100 JMESSAGE(JERR_TGA_BADCMAP, "Unsupported Targa colormap format")
00101 JMESSAGE(JERR_TGA_BADPARMS, "Invalid or unsupported Targa file")
00102 JMESSAGE(JERR_TGA_COLORSPACE, "Targa output must be grayscale or RGB")
00103 JMESSAGE(JTRC_TGA, "%ux%u RGB Targa image")
00104 JMESSAGE(JTRC_TGA_GRAY, "%ux%u grayscale Targa image")
00105 JMESSAGE(JTRC_TGA_MAPPED, "%ux%u colormapped Targa image")
00106 #else
00107 JMESSAGE(JERR_TGA_NOTCOMP, "Targa support was not compiled")
00108 #endif /* TARGA_SUPPORTED */
00109 
00110 JMESSAGE(JERR_BAD_CMAP_FILE,
00111          "Color map file is invalid or of unsupported format")
00112 JMESSAGE(JERR_TOO_MANY_COLORS,
00113          "Output file format cannot handle %d colormap entries")
00114 JMESSAGE(JERR_UNGETC_FAILED, "ungetc failed")
00115 #ifdef TARGA_SUPPORTED
00116 JMESSAGE(JERR_UNKNOWN_FORMAT,
00117          "Unrecognized input file format --- perhaps you need -targa")
00118 #else
00119 JMESSAGE(JERR_UNKNOWN_FORMAT, "Unrecognized input file format")
00120 #endif
00121 JMESSAGE(JERR_UNSUPPORTED_FORMAT, "Unsupported output file format")
00122 
00123 #ifdef JMAKE_ENUM_LIST
00124 
00125   JMSG_LASTADDONCODE
00126 } ADDON_MESSAGE_CODE;
00127 
00128 #undef JMAKE_ENUM_LIST
00129 #endif /* JMAKE_ENUM_LIST */
00130 
00131 /* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
00132 #undef JMESSAGE


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:52