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