mirror of
https://github.com/opencv/opencv.git
synced 2024-12-05 09:49:12 +08:00
137 lines
4.5 KiB
C
137 lines
4.5 KiB
C
#define HAVE_PROTOTYPES
|
|
#define HAVE_UNSIGNED_CHAR
|
|
#define HAVE_UNSIGNED_SHORT
|
|
|
|
/* Define this if an ordinary "char" type is unsigned.
|
|
* If you're not sure, leaving it undefined will work at some cost in speed.
|
|
* If you defined HAVE_UNSIGNED_CHAR then the speed difference is minimal.
|
|
*/
|
|
#undef CHAR_IS_UNSIGNED
|
|
|
|
#if defined __MINGW__ || defined __MINGW32__ || (!defined WIN32 && !defined _WIN32)
|
|
/* Define this if your system has an ANSI-conforming <stddef.h> file.
|
|
*/
|
|
#define HAVE_STDDEF_H
|
|
|
|
/* Define this if your system has an ANSI-conforming <stdlib.h> file.
|
|
*/
|
|
#define HAVE_STDLIB_H
|
|
#endif
|
|
|
|
/* Define this if your system does not have an ANSI/SysV <string.h>,
|
|
* but does have a BSD-style <strings.h>.
|
|
*/
|
|
#undef NEED_BSD_STRINGS
|
|
|
|
/* Define this if your system does not provide typedef size_t in any of the
|
|
* ANSI-standard places (stddef.h, stdlib.h, or stdio.h), but places it in
|
|
* <sys/types.h> instead.
|
|
*/
|
|
#undef NEED_SYS_TYPES_H
|
|
|
|
/* For 80x86 machines, you need to define NEED_FAR_POINTERS,
|
|
* unless you are using a large-data memory model or 80386 flat-memory mode.
|
|
* On less brain-damaged CPUs this symbol must not be defined.
|
|
* (Defining this symbol causes large data structures to be referenced through
|
|
* "far" pointers and to be allocated with a special version of malloc.)
|
|
*/
|
|
#undef NEED_FAR_POINTERS
|
|
|
|
/* Define this if your linker needs global names to be unique in less
|
|
* than the first 15 characters.
|
|
*/
|
|
#undef NEED_SHORT_EXTERNAL_NAMES
|
|
|
|
/* Although a real ANSI C compiler can deal perfectly well with pointers to
|
|
* unspecified structures (see "incomplete types" in the spec), a few pre-ANSI
|
|
* and pseudo-ANSI compilers get confused. To keep one of these bozos happy,
|
|
* define INCOMPLETE_TYPES_BROKEN. This is not recommended unless you
|
|
* actually get "missing structure definition" warnings or errors while
|
|
* compiling the JPEG code.
|
|
*/
|
|
#undef INCOMPLETE_TYPES_BROKEN
|
|
|
|
/* Define "boolean" as unsigned char, not int, on Windows systems.
|
|
*/
|
|
#ifdef _WIN32
|
|
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
|
|
typedef unsigned char boolean;
|
|
#endif
|
|
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
|
|
#endif
|
|
|
|
|
|
/*
|
|
* The following options affect code selection within the JPEG library,
|
|
* but they don't need to be visible to applications using the library.
|
|
* To minimize application namespace pollution, the symbols won't be
|
|
* defined unless JPEG_INTERNALS has been defined.
|
|
*/
|
|
|
|
#ifdef JPEG_INTERNALS
|
|
|
|
/* Define this if your compiler implements ">>" on signed values as a logical
|
|
* (unsigned) shift; leave it undefined if ">>" is a signed (arithmetic) shift,
|
|
* which is the normal and rational definition.
|
|
*/
|
|
#undef RIGHT_SHIFT_IS_UNSIGNED
|
|
|
|
/* These are for configuring the JPEG memory manager. */
|
|
#define DEFAULT_MAX_MEM 1073741824 /*1Gb*/
|
|
|
|
#if !defined WIN32 && !defined _WIN32
|
|
#define INLINE __inline__
|
|
#undef NO_MKTEMP
|
|
#endif
|
|
|
|
#endif /* JPEG_INTERNALS */
|
|
|
|
|
|
/*
|
|
* The remaining options do not affect the JPEG library proper,
|
|
* but only the sample applications cjpeg/djpeg (see cjpeg.c, djpeg.c).
|
|
* Other applications can ignore these.
|
|
*/
|
|
|
|
#ifdef JPEG_CJPEG_DJPEG
|
|
|
|
/* These defines indicate which image (non-JPEG) file formats are allowed. */
|
|
|
|
#define BMP_SUPPORTED /* BMP image file format */
|
|
#define GIF_SUPPORTED /* GIF image file format */
|
|
#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
|
|
#undef RLE_SUPPORTED /* Utah RLE image file format */
|
|
#define TARGA_SUPPORTED /* Targa image file format */
|
|
|
|
/* Define this if you want to name both input and output files on the command
|
|
* line, rather than using stdout and optionally stdin. You MUST do this if
|
|
* your system can't cope with binary I/O to stdin/stdout. See comments at
|
|
* head of cjpeg.c or djpeg.c.
|
|
*/
|
|
#if defined WIN32 || defined _WIN32
|
|
#define TWO_FILE_COMMANDLINE /* optional */
|
|
#define USE_SETMODE /* Microsoft has setmode() */
|
|
#else
|
|
#undef TWO_FILE_COMMANDLINE
|
|
#endif
|
|
|
|
/* Define this if your system needs explicit cleanup of temporary files.
|
|
* This is crucial under MS-DOS, where the temporary "files" may be areas
|
|
* of extended memory; on most other systems it's not as important.
|
|
*/
|
|
#undef NEED_SIGNAL_CATCHER
|
|
|
|
/* By default, we open image files with fopen(...,"rb") or fopen(...,"wb").
|
|
* This is necessary on systems that distinguish text files from binary files,
|
|
* and is harmless on most systems that don't. If you have one of the rare
|
|
* systems that complains about the "b" spec, define this symbol.
|
|
*/
|
|
#undef DONT_USE_B_MODE
|
|
|
|
/* Define this if you want percent-done progress reports from cjpeg/djpeg.
|
|
*/
|
|
#undef PROGRESS_REPORT
|
|
|
|
|
|
#endif /* JPEG_CJPEG_DJPEG */
|