ReactOS 0.4.15-dev-7953-g1f49173
cderror.h
Go to the documentation of this file.
1/*
2 * cderror.h
3 *
4 * Copyright (C) 1994-1997, Thomas G. Lane.
5 * Modified 2009-2017 by Guido Vollbeding.
6 * This file is part of the Independent JPEG Group's software.
7 * For conditions of distribution and use, see the accompanying README file.
8 *
9 * This file defines the error and message codes for the cjpeg/djpeg
10 * applications. These strings are not needed as part of the JPEG library
11 * proper.
12 * Edit this file to add new codes, or to translate the message strings to
13 * some other language.
14 */
15
16/*
17 * To define the enum list of message codes, include this file without
18 * defining macro JMESSAGE. To create a message string table, include it
19 * again with a suitable JMESSAGE definition (see jerror.c for an example).
20 */
21#ifndef JMESSAGE
22#ifndef CDERROR_H
23#define CDERROR_H
24/* First time through, define the enum list */
25#define JMAKE_ENUM_LIST
26#else
27/* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
28#define JMESSAGE(code,string)
29#endif /* CDERROR_H */
30#endif /* JMESSAGE */
31
32#ifdef JMAKE_ENUM_LIST
33
34typedef enum {
35
36#define JMESSAGE(code,string) code ,
37
38#endif /* JMAKE_ENUM_LIST */
39
40JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */
41
42#ifdef BMP_SUPPORTED
43JMESSAGE(JERR_BMP_BADCMAP, "Unsupported BMP colormap format")
44JMESSAGE(JERR_BMP_BADDEPTH, "Only 8-, 24-, and 32-bit BMP files are supported")
45JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")
46JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")
47JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")
48JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")
49JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")
50JMESSAGE(JERR_BMP_OUTOFRANGE, "Numeric value out of range in BMP file")
51JMESSAGE(JTRC_BMP, "%ux%u %d-bit BMP image")
52JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")
53JMESSAGE(JTRC_BMP_OS2, "%ux%u %d-bit OS2 BMP image")
54JMESSAGE(JTRC_BMP_OS2_MAPPED, "%ux%u 8-bit colormapped OS2 BMP image")
55#endif /* BMP_SUPPORTED */
56
57#ifdef GIF_SUPPORTED
58JMESSAGE(JERR_GIF_BUG, "GIF output got confused")
59JMESSAGE(JERR_GIF_CODESIZE, "Bogus GIF codesize %d")
60JMESSAGE(JERR_GIF_COLORSPACE, "GIF output must be grayscale or RGB")
61JMESSAGE(JERR_GIF_IMAGENOTFOUND, "Too few images in GIF file")
62JMESSAGE(JERR_GIF_NOT, "Not a GIF file")
63JMESSAGE(JTRC_GIF, "%ux%ux%d GIF image")
64JMESSAGE(JTRC_GIF_BADVERSION,
65 "Warning: unexpected GIF version number '%c%c%c'")
66JMESSAGE(JTRC_GIF_EXTENSION, "Ignoring GIF extension block of type 0x%02x")
67JMESSAGE(JTRC_GIF_NONSQUARE, "Caution: nonsquare pixels in input")
68JMESSAGE(JWRN_GIF_BADDATA, "Corrupt data in GIF file")
69JMESSAGE(JWRN_GIF_CHAR, "Bogus char 0x%02x in GIF file, ignoring")
70JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")
71JMESSAGE(JWRN_GIF_NOMOREDATA, "Ran out of GIF bits")
72#endif /* GIF_SUPPORTED */
73
74#ifdef PPM_SUPPORTED
75JMESSAGE(JERR_PPM_COLORSPACE, "PPM output must be grayscale or RGB")
76JMESSAGE(JERR_PPM_NONNUMERIC, "Nonnumeric data in PPM file")
77JMESSAGE(JERR_PPM_NOT, "Not a PPM/PGM file")
78JMESSAGE(JERR_PPM_OUTOFRANGE, "Numeric value out of range in PPM file")
79JMESSAGE(JTRC_PGM, "%ux%u PGM image")
80JMESSAGE(JTRC_PGM_TEXT, "%ux%u text PGM image")
81JMESSAGE(JTRC_PPM, "%ux%u PPM image")
82JMESSAGE(JTRC_PPM_TEXT, "%ux%u text PPM image")
83#endif /* PPM_SUPPORTED */
84
85#ifdef RLE_SUPPORTED
86JMESSAGE(JERR_RLE_BADERROR, "Bogus error code from RLE library")
87JMESSAGE(JERR_RLE_COLORSPACE, "RLE output must be grayscale or RGB")
88JMESSAGE(JERR_RLE_DIMENSIONS, "Image dimensions (%ux%u) too large for RLE")
89JMESSAGE(JERR_RLE_EMPTY, "Empty RLE file")
90JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")
91JMESSAGE(JERR_RLE_MEM, "Insufficient memory for RLE header")
92JMESSAGE(JERR_RLE_NOT, "Not an RLE file")
93JMESSAGE(JERR_RLE_TOOMANYCHANNELS, "Cannot handle %d output channels for RLE")
94JMESSAGE(JERR_RLE_UNSUPPORTED, "Cannot handle this RLE setup")
95JMESSAGE(JTRC_RLE, "%ux%u full-color RLE file")
96JMESSAGE(JTRC_RLE_FULLMAP, "%ux%u full-color RLE file with map of length %d")
97JMESSAGE(JTRC_RLE_GRAY, "%ux%u grayscale RLE file")
98JMESSAGE(JTRC_RLE_MAPGRAY, "%ux%u grayscale RLE file with map of length %d")
99JMESSAGE(JTRC_RLE_MAPPED, "%ux%u colormapped RLE file with map of length %d")
100#endif /* RLE_SUPPORTED */
101
102#ifdef TARGA_SUPPORTED
103JMESSAGE(JERR_TGA_BADCMAP, "Unsupported Targa colormap format")
104JMESSAGE(JERR_TGA_BADPARMS, "Invalid or unsupported Targa file")
105JMESSAGE(JERR_TGA_COLORSPACE, "Targa output must be grayscale or RGB")
106JMESSAGE(JTRC_TGA, "%ux%u RGB Targa image")
107JMESSAGE(JTRC_TGA_GRAY, "%ux%u grayscale Targa image")
108JMESSAGE(JTRC_TGA_MAPPED, "%ux%u colormapped Targa image")
109#else
110JMESSAGE(JERR_TGA_NOTCOMP, "Targa support was not compiled")
111#endif /* TARGA_SUPPORTED */
112
113JMESSAGE(JERR_BAD_CMAP_FILE,
114 "Color map file is invalid or of unsupported format")
115JMESSAGE(JERR_TOO_MANY_COLORS,
116 "Output file format cannot handle %d colormap entries")
117JMESSAGE(JERR_UNGETC_FAILED, "ungetc failed")
118#ifdef TARGA_SUPPORTED
119JMESSAGE(JERR_UNKNOWN_FORMAT,
120 "Unrecognized input file format --- perhaps you need -targa")
121#else
122JMESSAGE(JERR_UNKNOWN_FORMAT, "Unrecognized input file format")
123#endif
124JMESSAGE(JERR_UNSUPPORTED_FORMAT, "Unsupported output file format")
125
126#ifdef JMAKE_ENUM_LIST
127
128 JMSG_LASTADDONCODE
130
131#undef JMAKE_ENUM_LIST
132#endif /* JMAKE_ENUM_LIST */
133
134/* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
135#undef JMESSAGE
@ Invalid
Definition: asmpp.cpp:30
ADDON_MESSAGE_CODE
Definition: cderror.h:34
#define JMESSAGE(code, string)
Definition: cderror.h:36
Definition: _map.h:48
#define NULL
Definition: types.h:112
static const WCHAR version[]
Definition: asmname.c:66
@ BMP
Definition: image.c:4272
@ GIF
Definition: image.c:4274
const WCHAR * text
Definition: package.c:1799
#define RGB(r, g, b)
Definition: precomp.h:71
@ Empty
Definition: npfs.h:125
GLuint start
Definition: gl.h:1545
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: gl.h:1546
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLuint GLuint end
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLuint color
Definition: glext.h:6243
const GLubyte * c
Definition: glext.h:8905
GLenum GLint * range
Definition: glext.h:7539
GLuint in
Definition: glext.h:9616
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:10929
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
GLenum GLenum GLenum input
Definition: glext.h:9031
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Definition: glfuncs.h:240
_CRTIMP void __cdecl unexpected(void)
#define EOF
Definition: stdio.h:24
_Check_return_opt_ _CRTIMP_ALT int __cdecl ungetc(_In_ int _Ch, _Inout_ FILE *_File)
Sorry
Definition: jdcolor.c:19
#define d
Definition: ke_i.h:81
@ RLE
Definition: bidi.c:91
#define for
Definition: utility.h:88
static unsigned int number
Definition: dsound.c:1479
static char memory[1024 *256]
Definition: process.c:116
static BOOL setup(void)
Definition: enum_files.c:97
int This channels
Definition: rdpsnd_libao.c:37
#define equal(x, y)
Definition: reader.cc:56
static FILE * out
Definition: regtests2xml.c:44
@ Output
Definition: arc.h:85
Definition: fci.c:127
Definition: pdh_main.c:94
static unsigned int block
Definition: xmlmemory.c:101