Blame gtkmm-osx/jpeg-6b/cderror.h

darco 56a656
/*
darco 56a656
 * cderror.h
darco 56a656
 *
darco 56a656
 * Copyright (C) 1994-1997, Thomas G. Lane.
darco 56a656
 * This file is part of the Independent JPEG Group's software.
darco 56a656
 * For conditions of distribution and use, see the accompanying README file.
darco 56a656
 *
darco 56a656
 * This file defines the error and message codes for the cjpeg/djpeg
darco 56a656
 * applications.  These strings are not needed as part of the JPEG library
darco 56a656
 * proper.
darco 56a656
 * Edit this file to add new codes, or to translate the message strings to
darco 56a656
 * some other language.
darco 56a656
 */
darco 56a656
darco 56a656
/*
darco 56a656
 * To define the enum list of message codes, include this file without
darco 56a656
 * defining macro JMESSAGE.  To create a message string table, include it
darco 56a656
 * again with a suitable JMESSAGE definition (see jerror.c for an example).
darco 56a656
 */
darco 56a656
#ifndef JMESSAGE
darco 56a656
#ifndef CDERROR_H
darco 56a656
#define CDERROR_H
darco 56a656
/* First time through, define the enum list */
darco 56a656
#define JMAKE_ENUM_LIST
darco 56a656
#else
darco 56a656
/* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
darco 56a656
#define JMESSAGE(code,string)
darco 56a656
#endif /* CDERROR_H */
darco 56a656
#endif /* JMESSAGE */
darco 56a656
darco 56a656
#ifdef JMAKE_ENUM_LIST
darco 56a656
darco 56a656
typedef enum {
darco 56a656
darco 56a656
#define JMESSAGE(code,string)	code ,
darco 56a656
darco 56a656
#endif /* JMAKE_ENUM_LIST */
darco 56a656
darco 56a656
JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */
darco 56a656
darco 56a656
#ifdef BMP_SUPPORTED
darco 56a656
JMESSAGE(JERR_BMP_BADCMAP, "Unsupported BMP colormap format")
darco 56a656
JMESSAGE(JERR_BMP_BADDEPTH, "Only 8- and 24-bit BMP files are supported")
darco 56a656
JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")
darco 56a656
JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")
darco 56a656
JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")
darco 56a656
JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")
darco 56a656
JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")
darco 56a656
JMESSAGE(JTRC_BMP, "%ux%u 24-bit BMP image")
darco 56a656
JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")
darco 56a656
JMESSAGE(JTRC_BMP_OS2, "%ux%u 24-bit OS2 BMP image")
darco 56a656
JMESSAGE(JTRC_BMP_OS2_MAPPED, "%ux%u 8-bit colormapped OS2 BMP image")
darco 56a656
#endif /* BMP_SUPPORTED */
darco 56a656
darco 56a656
#ifdef GIF_SUPPORTED
darco 56a656
JMESSAGE(JERR_GIF_BUG, "GIF output got confused")
darco 56a656
JMESSAGE(JERR_GIF_CODESIZE, "Bogus GIF codesize %d")
darco 56a656
JMESSAGE(JERR_GIF_COLORSPACE, "GIF output must be grayscale or RGB")
darco 56a656
JMESSAGE(JERR_GIF_IMAGENOTFOUND, "Too few images in GIF file")
darco 56a656
JMESSAGE(JERR_GIF_NOT, "Not a GIF file")
darco 56a656
JMESSAGE(JTRC_GIF, "%ux%ux%d GIF image")
darco 56a656
JMESSAGE(JTRC_GIF_BADVERSION,
darco 56a656
	 "Warning: unexpected GIF version number '%c%c%c'")
darco 56a656
JMESSAGE(JTRC_GIF_EXTENSION, "Ignoring GIF extension block of type 0x%02x")
darco 56a656
JMESSAGE(JTRC_GIF_NONSQUARE, "Caution: nonsquare pixels in input")
darco 56a656
JMESSAGE(JWRN_GIF_BADDATA, "Corrupt data in GIF file")
darco 56a656
JMESSAGE(JWRN_GIF_CHAR, "Bogus char 0x%02x in GIF file, ignoring")
darco 56a656
JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")
darco 56a656
JMESSAGE(JWRN_GIF_NOMOREDATA, "Ran out of GIF bits")
darco 56a656
#endif /* GIF_SUPPORTED */
darco 56a656
darco 56a656
#ifdef PPM_SUPPORTED
darco 56a656
JMESSAGE(JERR_PPM_COLORSPACE, "PPM output must be grayscale or RGB")
darco 56a656
JMESSAGE(JERR_PPM_NONNUMERIC, "Nonnumeric data in PPM file")
darco 56a656
JMESSAGE(JERR_PPM_NOT, "Not a PPM/PGM file")
darco 56a656
JMESSAGE(JTRC_PGM, "%ux%u PGM image")
darco 56a656
JMESSAGE(JTRC_PGM_TEXT, "%ux%u text PGM image")
darco 56a656
JMESSAGE(JTRC_PPM, "%ux%u PPM image")
darco 56a656
JMESSAGE(JTRC_PPM_TEXT, "%ux%u text PPM image")
darco 56a656
#endif /* PPM_SUPPORTED */
darco 56a656
darco 56a656
#ifdef RLE_SUPPORTED
darco 56a656
JMESSAGE(JERR_RLE_BADERROR, "Bogus error code from RLE library")
darco 56a656
JMESSAGE(JERR_RLE_COLORSPACE, "RLE output must be grayscale or RGB")
darco 56a656
JMESSAGE(JERR_RLE_DIMENSIONS, "Image dimensions (%ux%u) too large for RLE")
darco 56a656
JMESSAGE(JERR_RLE_EMPTY, "Empty RLE file")
darco 56a656
JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")
darco 56a656
JMESSAGE(JERR_RLE_MEM, "Insufficient memory for RLE header")
darco 56a656
JMESSAGE(JERR_RLE_NOT, "Not an RLE file")
darco 56a656
JMESSAGE(JERR_RLE_TOOMANYCHANNELS, "Cannot handle %d output channels for RLE")
darco 56a656
JMESSAGE(JERR_RLE_UNSUPPORTED, "Cannot handle this RLE setup")
darco 56a656
JMESSAGE(JTRC_RLE, "%ux%u full-color RLE file")
darco 56a656
JMESSAGE(JTRC_RLE_FULLMAP, "%ux%u full-color RLE file with map of length %d")
darco 56a656
JMESSAGE(JTRC_RLE_GRAY, "%ux%u grayscale RLE file")
darco 56a656
JMESSAGE(JTRC_RLE_MAPGRAY, "%ux%u grayscale RLE file with map of length %d")
darco 56a656
JMESSAGE(JTRC_RLE_MAPPED, "%ux%u colormapped RLE file with map of length %d")
darco 56a656
#endif /* RLE_SUPPORTED */
darco 56a656
darco 56a656
#ifdef TARGA_SUPPORTED
darco 56a656
JMESSAGE(JERR_TGA_BADCMAP, "Unsupported Targa colormap format")
darco 56a656
JMESSAGE(JERR_TGA_BADPARMS, "Invalid or unsupported Targa file")
darco 56a656
JMESSAGE(JERR_TGA_COLORSPACE, "Targa output must be grayscale or RGB")
darco 56a656
JMESSAGE(JTRC_TGA, "%ux%u RGB Targa image")
darco 56a656
JMESSAGE(JTRC_TGA_GRAY, "%ux%u grayscale Targa image")
darco 56a656
JMESSAGE(JTRC_TGA_MAPPED, "%ux%u colormapped Targa image")
darco 56a656
#else
darco 56a656
JMESSAGE(JERR_TGA_NOTCOMP, "Targa support was not compiled")
darco 56a656
#endif /* TARGA_SUPPORTED */
darco 56a656
darco 56a656
JMESSAGE(JERR_BAD_CMAP_FILE,
darco 56a656
	 "Color map file is invalid or of unsupported format")
darco 56a656
JMESSAGE(JERR_TOO_MANY_COLORS,
darco 56a656
	 "Output file format cannot handle %d colormap entries")
darco 56a656
JMESSAGE(JERR_UNGETC_FAILED, "ungetc failed")
darco 56a656
#ifdef TARGA_SUPPORTED
darco 56a656
JMESSAGE(JERR_UNKNOWN_FORMAT,
darco 56a656
	 "Unrecognized input file format --- perhaps you need -targa")
darco 56a656
#else
darco 56a656
JMESSAGE(JERR_UNKNOWN_FORMAT, "Unrecognized input file format")
darco 56a656
#endif
darco 56a656
JMESSAGE(JERR_UNSUPPORTED_FORMAT, "Unsupported output file format")
darco 56a656
darco 56a656
#ifdef JMAKE_ENUM_LIST
darco 56a656
darco 56a656
  JMSG_LASTADDONCODE
darco 56a656
} ADDON_MESSAGE_CODE;
darco 56a656
darco 56a656
#undef JMAKE_ENUM_LIST
darco 56a656
#endif /* JMAKE_ENUM_LIST */
darco 56a656
darco 56a656
/* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
darco 56a656
#undef JMESSAGE