blob: 21f35c13f5a0dcd5f07061ecf992f16f12c36aa2 [file] [log] [blame]
Tom Hudson0d47d2d2016-05-04 13:22:56 -04001/*
2 * jconfig.txt
3 *
4 * This file was part of the Independent JPEG Group's software:
5 * Copyright (C) 1991-1994, Thomas G. Lane.
6 * It was modified by The libjpeg-turbo Project to include only code relevant
7 * to libjpeg-turbo.
8 * For conditions of distribution and use, see the accompanying README.ijg
9 * file.
10 *
11 * This file documents the configuration options that are required to
12 * customize the JPEG software for a particular system.
13 *
14 * The actual configuration options for a particular installation are stored
15 * in jconfig.h. On many machines, jconfig.h can be generated automatically
16 * or copied from one of the "canned" jconfig files that we supply. But if
17 * you need to generate a jconfig.h file by hand, this file tells you how.
18 *
19 * DO NOT EDIT THIS FILE --- IT WON'T ACCOMPLISH ANYTHING.
20 * EDIT A COPY NAMED JCONFIG.H.
21 */
22
23
24/*
25 * These symbols indicate the properties of your machine or compiler.
26 * #define the symbol if yes, #undef it if no.
27 */
28
29/* Does your compiler support the declaration "unsigned char" ?
30 * How about "unsigned short" ?
31 */
32#define HAVE_UNSIGNED_CHAR
33#define HAVE_UNSIGNED_SHORT
34
35/* Define "void" as "char" if your compiler doesn't know about type void.
36 * NOTE: be sure to define void such that "void *" represents the most general
37 * pointer type, e.g., that returned by malloc().
38 */
39/* #define void char */
40
41/* Define "const" as empty if your compiler doesn't know the "const" keyword.
42 */
43/* #define const */
44
Tom Hudson0d47d2d2016-05-04 13:22:56 -040045/* Define this if your system has an ANSI-conforming <stddef.h> file.
46 */
47#define HAVE_STDDEF_H
48
49/* Define this if your system has an ANSI-conforming <stdlib.h> file.
50 */
51#define HAVE_STDLIB_H
52
53/* Define this if your system does not have an ANSI/SysV <string.h>,
54 * but does have a BSD-style <strings.h>.
55 */
56#undef NEED_BSD_STRINGS
57
58/* Define this if your system does not provide typedef size_t in any of the
59 * ANSI-standard places (stddef.h, stdlib.h, or stdio.h), but places it in
60 * <sys/types.h> instead.
61 */
62#undef NEED_SYS_TYPES_H
63
64/* Although a real ANSI C compiler can deal perfectly well with pointers to
65 * unspecified structures (see "incomplete types" in the spec), a few pre-ANSI
66 * and pseudo-ANSI compilers get confused. To keep one of these bozos happy,
67 * define INCOMPLETE_TYPES_BROKEN. This is not recommended unless you
68 * actually get "missing structure definition" warnings or errors while
69 * compiling the JPEG code.
70 */
71#undef INCOMPLETE_TYPES_BROKEN
72
73/* Define "boolean" as unsigned char, not int, on Windows systems.
74 */
75#ifdef _WIN32
76#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
77typedef unsigned char boolean;
78#endif
79#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
80#endif
81
82
83/*
84 * The following options affect code selection within the JPEG library,
85 * but they don't need to be visible to applications using the library.
86 * To minimize application namespace pollution, the symbols won't be
87 * defined unless JPEG_INTERNALS has been defined.
88 */
89
90#ifdef JPEG_INTERNALS
91
92/* Define this if your compiler implements ">>" on signed values as a logical
93 * (unsigned) shift; leave it undefined if ">>" is a signed (arithmetic) shift,
94 * which is the normal and rational definition.
95 */
96#undef RIGHT_SHIFT_IS_UNSIGNED
97
98
99#endif /* JPEG_INTERNALS */
100
101
102/*
103 * The remaining options do not affect the JPEG library proper,
104 * but only the sample applications cjpeg/djpeg (see cjpeg.c, djpeg.c).
105 * Other applications can ignore these.
106 */
107
108#ifdef JPEG_CJPEG_DJPEG
109
110/* These defines indicate which image (non-JPEG) file formats are allowed. */
111
112#define BMP_SUPPORTED /* BMP image file format */
113#define GIF_SUPPORTED /* GIF image file format */
114#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
Tom Hudson0d47d2d2016-05-04 13:22:56 -0400115#define TARGA_SUPPORTED /* Targa image file format */
116
117/* Define this if you want to name both input and output files on the command
118 * line, rather than using stdout and optionally stdin. You MUST do this if
119 * your system can't cope with binary I/O to stdin/stdout. See comments at
120 * head of cjpeg.c or djpeg.c.
121 */
122#undef TWO_FILE_COMMANDLINE
123
Chris Blumecca8c4d2019-03-01 01:09:50 -0800124/* By default, we open image files with fopen(..., "rb") or fopen(..., "wb").
Tom Hudson0d47d2d2016-05-04 13:22:56 -0400125 * This is necessary on systems that distinguish text files from binary files,
126 * and is harmless on most systems that don't. If you have one of the rare
127 * systems that complains about the "b" spec, define this symbol.
128 */
129#undef DONT_USE_B_MODE
130
131/* Define this if you want percent-done progress reports from cjpeg/djpeg.
132 */
133#undef PROGRESS_REPORT
134
135
136#endif /* JPEG_CJPEG_DJPEG */