• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
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/* Define "boolean" as unsigned char, not int, on Windows systems.
30 */
31#ifdef _WIN32
32#ifndef __RPCNDR_H__            /* don't conflict if rpcndr.h already read */
33typedef unsigned char boolean;
34#endif
35#define HAVE_BOOLEAN            /* prevent jmorecfg.h from redefining it */
36#endif
37
38
39/*
40 * The following options affect code selection within the JPEG library,
41 * but they don't need to be visible to applications using the library.
42 * To minimize application namespace pollution, the symbols won't be
43 * defined unless JPEG_INTERNALS has been defined.
44 */
45
46#ifdef JPEG_INTERNALS
47
48/* Define this if your compiler implements ">>" on signed values as a logical
49 * (unsigned) shift; leave it undefined if ">>" is a signed (arithmetic) shift,
50 * which is the normal and rational definition.
51 */
52#undef RIGHT_SHIFT_IS_UNSIGNED
53
54
55#endif /* JPEG_INTERNALS */
56
57
58/*
59 * The remaining options do not affect the JPEG library proper,
60 * but only the sample applications cjpeg/djpeg (see cjpeg.c, djpeg.c).
61 * Other applications can ignore these.
62 */
63
64#ifdef JPEG_CJPEG_DJPEG
65
66/* These defines indicate which image (non-JPEG) file formats are allowed. */
67
68#define BMP_SUPPORTED           /* BMP image file format */
69#define GIF_SUPPORTED           /* GIF image file format */
70#define PPM_SUPPORTED           /* PBMPLUS PPM/PGM image file format */
71#define TARGA_SUPPORTED         /* Targa image file format */
72
73/* Define this if you want to name both input and output files on the command
74 * line, rather than using stdout and optionally stdin.  You MUST do this if
75 * your system can't cope with binary I/O to stdin/stdout.  See comments at
76 * head of cjpeg.c or djpeg.c.
77 */
78#undef TWO_FILE_COMMANDLINE
79
80/* By default, we open image files with fopen(..., "rb") or fopen(..., "wb").
81 * This is necessary on systems that distinguish text files from binary files,
82 * and is harmless on most systems that don't.  If you have one of the rare
83 * systems that complains about the "b" spec, define this symbol.
84 */
85#undef DONT_USE_B_MODE
86
87/* Define this if you want percent-done progress reports from cjpeg/djpeg.
88 */
89#undef PROGRESS_REPORT
90
91
92#endif /* JPEG_CJPEG_DJPEG */
93