ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

cderror.h
Go to the documentation of this file.
00001 /*
00002  * cderror.h
00003  *
00004  * Copyright (C) 1994-1997, Thomas G. Lane.
00005  * Modified 2009 by Guido Vollbeding.
00006  * This file is part of the Independent JPEG Group's software.
00007  * For conditions of distribution and use, see the accompanying README file.
00008  *
00009  * This file defines the error and message codes for the cjpeg/djpeg
00010  * applications.  These strings are not needed as part of the JPEG library
00011  * proper.
00012  * Edit this file to add new codes, or to translate the message strings to
00013  * some other language.
00014  */
00015 
00016 /*
00017  * To define the enum list of message codes, include this file without
00018  * defining macro JMESSAGE.  To create a message string table, include it
00019  * again with a suitable JMESSAGE definition (see jerror.c for an example).
00020  */
00021 #ifndef JMESSAGE
00022 #ifndef CDERROR_H
00023 #define CDERROR_H
00024 /* First time through, define the enum list */
00025 #define JMAKE_ENUM_LIST
00026 #else
00027 /* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
00028 #define JMESSAGE(code,string)
00029 #endif /* CDERROR_H */
00030 #endif /* JMESSAGE */
00031 
00032 #ifdef JMAKE_ENUM_LIST
00033 
00034 typedef enum {
00035 
00036 #define JMESSAGE(code,string)   code ,
00037 
00038 #endif /* JMAKE_ENUM_LIST */
00039 
00040 JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */
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 /* BMP_SUPPORTED */
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 /* GIF_SUPPORTED */
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 /* PPM_SUPPORTED */
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 /* RLE_SUPPORTED */
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 /* TARGA_SUPPORTED */
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 /* JMAKE_ENUM_LIST */
00132 
00133 /* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
00134 #undef JMESSAGE

Generated on Fri May 25 2012 04:31:38 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.