Doxygen Source Code Documentation
cderror.h File Reference
Go to the source code of this file.
Defines | |
#define | JMAKE_ENUM_LIST |
#define | JMESSAGE(code, string) code , |
Enumerations | |
enum | ADDON_MESSAGE_CODE { code, JMSG_FIRSTADDONCODE = 1000, JERR_BAD_CMAP_FILE, JERR_TOO_MANY_COLORS, JMSG_LASTADDONCODE } |
Define Documentation
|
|
|
|
Enumeration Type Documentation
|
Definition at line 33 of file cderror.h.
00033 { 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; |