Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/vncdll/winvnc/libjpeg/cderror.h
Views: 11784
/*1* cderror.h2*3* Copyright (C) 1994-1997, Thomas G. Lane.4* This file is part of the Independent JPEG Group's software.5* For conditions of distribution and use, see the accompanying README file.6*7* This file defines the error and message codes for the cjpeg/djpeg8* applications. These strings are not needed as part of the JPEG library9* proper.10* Edit this file to add new codes, or to translate the message strings to11* some other language.12*/1314/*15* To define the enum list of message codes, include this file without16* defining macro JMESSAGE. To create a message string table, include it17* again with a suitable JMESSAGE definition (see jerror.c for an example).18*/19#ifndef JMESSAGE20#ifndef CDERROR_H21#define CDERROR_H22/* First time through, define the enum list */23#define JMAKE_ENUM_LIST24#else25/* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */26#define JMESSAGE(code,string)27#endif /* CDERROR_H */28#endif /* JMESSAGE */2930#ifdef JMAKE_ENUM_LIST3132typedef enum {3334#define JMESSAGE(code,string) code ,3536#endif /* JMAKE_ENUM_LIST */3738JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */3940#ifdef BMP_SUPPORTED41JMESSAGE(JERR_BMP_BADCMAP, "Unsupported BMP colormap format")42JMESSAGE(JERR_BMP_BADDEPTH, "Only 8- and 24-bit BMP files are supported")43JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")44JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")45JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")46JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")47JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")48JMESSAGE(JTRC_BMP, "%ux%u 24-bit BMP image")49JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")50JMESSAGE(JTRC_BMP_OS2, "%ux%u 24-bit OS2 BMP image")51JMESSAGE(JTRC_BMP_OS2_MAPPED, "%ux%u 8-bit colormapped OS2 BMP image")52#endif /* BMP_SUPPORTED */5354#ifdef GIF_SUPPORTED55JMESSAGE(JERR_GIF_BUG, "GIF output got confused")56JMESSAGE(JERR_GIF_CODESIZE, "Bogus GIF codesize %d")57JMESSAGE(JERR_GIF_COLORSPACE, "GIF output must be grayscale or RGB")58JMESSAGE(JERR_GIF_IMAGENOTFOUND, "Too few images in GIF file")59JMESSAGE(JERR_GIF_NOT, "Not a GIF file")60JMESSAGE(JTRC_GIF, "%ux%ux%d GIF image")61JMESSAGE(JTRC_GIF_BADVERSION,62"Warning: unexpected GIF version number '%c%c%c'")63JMESSAGE(JTRC_GIF_EXTENSION, "Ignoring GIF extension block of type 0x%02x")64JMESSAGE(JTRC_GIF_NONSQUARE, "Caution: nonsquare pixels in input")65JMESSAGE(JWRN_GIF_BADDATA, "Corrupt data in GIF file")66JMESSAGE(JWRN_GIF_CHAR, "Bogus char 0x%02x in GIF file, ignoring")67JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")68JMESSAGE(JWRN_GIF_NOMOREDATA, "Ran out of GIF bits")69#endif /* GIF_SUPPORTED */7071#ifdef PPM_SUPPORTED72JMESSAGE(JERR_PPM_COLORSPACE, "PPM output must be grayscale or RGB")73JMESSAGE(JERR_PPM_NONNUMERIC, "Nonnumeric data in PPM file")74JMESSAGE(JERR_PPM_NOT, "Not a PPM/PGM file")75JMESSAGE(JTRC_PGM, "%ux%u PGM image")76JMESSAGE(JTRC_PGM_TEXT, "%ux%u text PGM image")77JMESSAGE(JTRC_PPM, "%ux%u PPM image")78JMESSAGE(JTRC_PPM_TEXT, "%ux%u text PPM image")79#endif /* PPM_SUPPORTED */8081#ifdef RLE_SUPPORTED82JMESSAGE(JERR_RLE_BADERROR, "Bogus error code from RLE library")83JMESSAGE(JERR_RLE_COLORSPACE, "RLE output must be grayscale or RGB")84JMESSAGE(JERR_RLE_DIMENSIONS, "Image dimensions (%ux%u) too large for RLE")85JMESSAGE(JERR_RLE_EMPTY, "Empty RLE file")86JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")87JMESSAGE(JERR_RLE_MEM, "Insufficient memory for RLE header")88JMESSAGE(JERR_RLE_NOT, "Not an RLE file")89JMESSAGE(JERR_RLE_TOOMANYCHANNELS, "Cannot handle %d output channels for RLE")90JMESSAGE(JERR_RLE_UNSUPPORTED, "Cannot handle this RLE setup")91JMESSAGE(JTRC_RLE, "%ux%u full-color RLE file")92JMESSAGE(JTRC_RLE_FULLMAP, "%ux%u full-color RLE file with map of length %d")93JMESSAGE(JTRC_RLE_GRAY, "%ux%u grayscale RLE file")94JMESSAGE(JTRC_RLE_MAPGRAY, "%ux%u grayscale RLE file with map of length %d")95JMESSAGE(JTRC_RLE_MAPPED, "%ux%u colormapped RLE file with map of length %d")96#endif /* RLE_SUPPORTED */9798#ifdef TARGA_SUPPORTED99JMESSAGE(JERR_TGA_BADCMAP, "Unsupported Targa colormap format")100JMESSAGE(JERR_TGA_BADPARMS, "Invalid or unsupported Targa file")101JMESSAGE(JERR_TGA_COLORSPACE, "Targa output must be grayscale or RGB")102JMESSAGE(JTRC_TGA, "%ux%u RGB Targa image")103JMESSAGE(JTRC_TGA_GRAY, "%ux%u grayscale Targa image")104JMESSAGE(JTRC_TGA_MAPPED, "%ux%u colormapped Targa image")105#else106JMESSAGE(JERR_TGA_NOTCOMP, "Targa support was not compiled")107#endif /* TARGA_SUPPORTED */108109JMESSAGE(JERR_BAD_CMAP_FILE,110"Color map file is invalid or of unsupported format")111JMESSAGE(JERR_TOO_MANY_COLORS,112"Output file format cannot handle %d colormap entries")113JMESSAGE(JERR_UNGETC_FAILED, "ungetc failed")114#ifdef TARGA_SUPPORTED115JMESSAGE(JERR_UNKNOWN_FORMAT,116"Unrecognized input file format --- perhaps you need -targa")117#else118JMESSAGE(JERR_UNKNOWN_FORMAT, "Unrecognized input file format")119#endif120JMESSAGE(JERR_UNSUPPORTED_FORMAT, "Unsupported output file format")121122#ifdef JMAKE_ENUM_LIST123124JMSG_LASTADDONCODE125} ADDON_MESSAGE_CODE;126127#undef JMAKE_ENUM_LIST128#endif /* JMAKE_ENUM_LIST */129130/* Zap JMESSAGE macro so that future re-inclusions do nothing by default */131#undef JMESSAGE132133134