jmorecfg.h revision 976fd9687e5773f3653385da7a3489ce4d58dd51
136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * jmorecfg.h
336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane *
4a73e870ad02de20c2b34cb3a5382c2846c2afbe3DRC * This file was part of the Independent JPEG Group's software:
55ead57a34a398aa798f35bd7a6abad19b2e453e2Thomas G. Lane * Copyright (C) 1991-1997, Thomas G. Lane.
6a73e870ad02de20c2b34cb3a5382c2846c2afbe3DRC * Modifications:
767ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC * Copyright (C) 2009, 2011, D. R. Commander.
836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * For conditions of distribution and use, see the accompanying README file.
936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane *
1036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * This file contains additional configuration options that customize the
1136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * JPEG software for special applications or support machine-dependent
1236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * optimizations.  Most users will not need to touch this file.
1336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
1436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
1536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
1636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
1736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Define BITS_IN_JSAMPLE as either
1836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane *   8   for 8-bit sample values (the usual setting)
1936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane *   12  for 12-bit sample values
2036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Only 8 and 12 are legal data precisions for lossy JPEG according to the
2136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * JPEG standard, and the IJG code does not support anything else!
2236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * We do not support run-time selection of data precision, sorry.
2336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
2436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
25b775351012af176720429ac21d11682a0b75b4b7DRC#define BITS_IN_JSAMPLE  8      /* use 8 or 12 */
2636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
2736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
2836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
2936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Maximum number of components (color channels) allowed in JPEG image.
3036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * To meet the letter of the JPEG spec, set this to 255.  However, darn
3136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * few applications need more than 4 channels (maybe 5 for CMYK + alpha
3236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * mask).  We recommend 10 as a reasonable compromise; use 4 if you are
3336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * really short on memory.  (Each allowed component costs a hundred or so
3436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * bytes of storage, whether actually used in an image or not.)
3536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
3636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
37b775351012af176720429ac21d11682a0b75b4b7DRC#define MAX_COMPONENTS  10      /* maximum number of image components */
3836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
3936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
4036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
4136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Basic data types.
4236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * You may need to change these if you have a machine with unusual data
4336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * type sizes; for example, "char" not 8 bits, "short" not 16 bits,
4436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * or "long" not 32 bits.  We don't care whether "int" is 16 or 32 bits,
4536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * but it had better be at least 16.
4636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
4736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
4836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Representation of a single sample (pixel element value).
4936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * We frequently allocate large arrays of these, so it's important to keep
5036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * them small.  But if you have memory to burn and access to char or short
5136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * arrays is very slow on your hardware, you might want to change these.
5236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
5336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
5436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#if BITS_IN_JSAMPLE == 8
5536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* JSAMPLE should be the smallest type that will hold the values 0..255.
5636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * You can use a signed char by having GETJSAMPLE mask it with 0xFF.
5736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
5836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
5936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef HAVE_UNSIGNED_CHAR
6036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
6136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef unsigned char JSAMPLE;
6236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define GETJSAMPLE(value)  ((int) (value))
6336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
6436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else /* not HAVE_UNSIGNED_CHAR */
6536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
6636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef char JSAMPLE;
670ca44258fc43bc44ea31b875001311591cc5634cConstantin Kaplinsky#ifdef __CHAR_UNSIGNED__
6836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define GETJSAMPLE(value)  ((int) (value))
6936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else
7036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define GETJSAMPLE(value)  ((int) (value) & 0xFF)
710ca44258fc43bc44ea31b875001311591cc5634cConstantin Kaplinsky#endif /* __CHAR_UNSIGNED__ */
7236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
7336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif /* HAVE_UNSIGNED_CHAR */
7436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
75b775351012af176720429ac21d11682a0b75b4b7DRC#define MAXJSAMPLE      255
76b775351012af176720429ac21d11682a0b75b4b7DRC#define CENTERJSAMPLE   128
7736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
7836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif /* BITS_IN_JSAMPLE == 8 */
7936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
8036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
8136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#if BITS_IN_JSAMPLE == 12
8236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* JSAMPLE should be the smallest type that will hold the values 0..4095.
8336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * On nearly all machines "short" will do nicely.
8436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
8536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
8636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef short JSAMPLE;
8736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define GETJSAMPLE(value)  ((int) (value))
8836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
89b775351012af176720429ac21d11682a0b75b4b7DRC#define MAXJSAMPLE      4095
90b775351012af176720429ac21d11682a0b75b4b7DRC#define CENTERJSAMPLE   2048
9136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
9236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif /* BITS_IN_JSAMPLE == 12 */
9336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
9436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
9536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Representation of a DCT frequency coefficient.
9636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * This should be a signed value of at least 16 bits; "short" is usually OK.
9736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Again, we allocate large arrays of these, but you can change to int
9836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * if you have memory to burn and "short" is really slow.
9936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
10036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
10136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef short JCOEF;
10236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
10336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
10436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Compressed datastreams are represented as arrays of JOCTET.
10536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * These must be EXACTLY 8 bits wide, at least once they are written to
10636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * external storage.  Note that when using the stdio data source/destination
10736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * managers, this is also the data type passed to fread/fwrite.
10836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
10936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
11036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef HAVE_UNSIGNED_CHAR
11136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
11236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef unsigned char JOCTET;
11336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define GETJOCTET(value)  (value)
11436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
11536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else /* not HAVE_UNSIGNED_CHAR */
11636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
11736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef char JOCTET;
1180ca44258fc43bc44ea31b875001311591cc5634cConstantin Kaplinsky#ifdef __CHAR_UNSIGNED__
11936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define GETJOCTET(value)  (value)
12036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else
12136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define GETJOCTET(value)  ((value) & 0xFF)
1220ca44258fc43bc44ea31b875001311591cc5634cConstantin Kaplinsky#endif /* __CHAR_UNSIGNED__ */
12336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
12436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif /* HAVE_UNSIGNED_CHAR */
12536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
12636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
12736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* These typedefs are used for various table entries and so forth.
12836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * They must be at least as wide as specified; but making them too big
12936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * won't cost a huge amount of memory, so we don't provide special
13036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * extraction code like we did for JSAMPLE.  (In other words, these
13136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * typedefs live at a different point on the speed/space tradeoff curve.)
13236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
13336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
13436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* UINT8 must hold at least the values 0..255. */
13536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
13636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef HAVE_UNSIGNED_CHAR
13736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef unsigned char UINT8;
13836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else /* not HAVE_UNSIGNED_CHAR */
1390ca44258fc43bc44ea31b875001311591cc5634cConstantin Kaplinsky#ifdef __CHAR_UNSIGNED__
14036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef char UINT8;
1410ca44258fc43bc44ea31b875001311591cc5634cConstantin Kaplinsky#else /* not __CHAR_UNSIGNED__ */
14236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef short UINT8;
1430ca44258fc43bc44ea31b875001311591cc5634cConstantin Kaplinsky#endif /* __CHAR_UNSIGNED__ */
14436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif /* HAVE_UNSIGNED_CHAR */
14536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
14636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* UINT16 must hold at least the values 0..65535. */
14736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
14836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef HAVE_UNSIGNED_SHORT
14936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef unsigned short UINT16;
15036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else /* not HAVE_UNSIGNED_SHORT */
15136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef unsigned int UINT16;
15236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif /* HAVE_UNSIGNED_SHORT */
15336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
15436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* INT16 must hold at least the values -32768..32767. */
15536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
156b775351012af176720429ac21d11682a0b75b4b7DRC#ifndef XMD_H                   /* X11/xmd.h correctly defines INT16 */
15736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef short INT16;
15836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
15936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
16036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* INT32 must hold at least signed 32-bit values. */
16136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
162b775351012af176720429ac21d11682a0b75b4b7DRC#ifndef XMD_H                   /* X11/xmd.h correctly defines INT32 */
16336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef long INT32;
16436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
16536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
16636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Datatype used for image dimensions.  The JPEG standard only supports
16736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * images up to 64K*64K due to 16-bit fields in SOF markers.  Therefore
16836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * "unsigned int" is sufficient on all machines.  However, if you need to
16936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * handle larger images and you don't mind deviating from the spec, you
17036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * can change this datatype.
17136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
17236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
17336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef unsigned int JDIMENSION;
17436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
17536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define JPEG_MAX_DIMENSION  65500L  /* a tad under 64K to prevent overflows */
17636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
17736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
178489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane/* These macros are used in all function definitions and extern declarations.
179489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane * You could modify them if you need to change function linkage conventions;
180489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane * in particular, you'll need to do that to make the library a Windows DLL.
18136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Another application is to make all functions global for use with debuggers
18236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * or code profilers that require it.
18336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
18436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
185489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane/* a function called through method pointers: */
186b775351012af176720429ac21d11682a0b75b4b7DRC#define METHODDEF(type)         static type
187489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane/* a function used only in its module: */
188b775351012af176720429ac21d11682a0b75b4b7DRC#define LOCAL(type)             static type
189489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane/* a function referenced thru EXTERNs: */
190b775351012af176720429ac21d11682a0b75b4b7DRC#define GLOBAL(type)            type
191489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane/* a reference to a GLOBAL function: */
192b775351012af176720429ac21d11682a0b75b4b7DRC#define EXTERN(type)            extern type
193489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane
194489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane
195489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane/* This macro is used to declare a "method", that is, a function pointer.
196489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane * We want to supply prototype parameters if the compiler can cope.
197489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane * Note that the arglist parameter must be parenthesized!
198489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane * Again, you can customize this if you need special linkage keywords.
199489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane */
200489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane
201489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane#ifdef HAVE_PROTOTYPES
202489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane#define JMETHOD(type,methodname,arglist)  type (*methodname) arglist
203489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane#else
204489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane#define JMETHOD(type,methodname,arglist)  type (*methodname) ()
205489583f5165e05d37302e8eeec58104ea0109127Thomas G. Lane#endif
20636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
20736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
20836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Here is the pseudo-keyword for declaring pointers that must be "far"
20936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * on 80x86 machines.  Most of the specialized coding for 80x86 is handled
21036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * by just saying "FAR *" where such a pointer is needed.  In a few places
21136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol.
21236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
21336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
21436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef NEED_FAR_POINTERS
215c168d9641ce8c2eccbc405ac0f38020a0acf90dcDRC#ifndef FAR
21636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define FAR  far
217c168d9641ce8c2eccbc405ac0f38020a0acf90dcDRC#endif
21836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else
219c168d9641ce8c2eccbc405ac0f38020a0acf90dcDRC#undef FAR
22036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define FAR
22136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
22236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
22336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
22436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
22536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * On a few systems, type boolean and/or its values FALSE, TRUE may appear
22636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * in standard header files.  Or you may have conflicts with application-
22736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * specific header files that you want to include together with these files.
22836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
22936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
23036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
23136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifndef HAVE_BOOLEAN
23236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lanetypedef int boolean;
23336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
234b775351012af176720429ac21d11682a0b75b4b7DRC#ifndef FALSE                   /* in case these macros already exist */
235b775351012af176720429ac21d11682a0b75b4b7DRC#define FALSE   0               /* values of boolean */
23636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
23736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifndef TRUE
238b775351012af176720429ac21d11682a0b75b4b7DRC#define TRUE    1
23936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
24036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
24136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
24236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
24336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * The remaining options affect code selection within the JPEG library,
24436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * but they don't need to be visible to most applications using the library.
24536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * To minimize application namespace pollution, the symbols won't be
24636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * defined unless JPEG_INTERNALS or JPEG_INTERNAL_OPTIONS has been defined.
24736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
24836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
24936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef JPEG_INTERNALS
25036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define JPEG_INTERNAL_OPTIONS
25136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
25236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
25336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef JPEG_INTERNAL_OPTIONS
25436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
25536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
25636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
25736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * These defines indicate whether to include various optional functions.
25836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Undefining some of these symbols will produce a smaller but less capable
25936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * library.  Note that you can leave certain source files out of the
26036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * compilation/linking process if you've #undef'd the corresponding symbols.
26136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * (You may HAVE to do that if your compiler doesn't like null source files.)
26236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
26336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
26436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Capability options common to encoder and decoder: */
26536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
266b775351012af176720429ac21d11682a0b75b4b7DRC#define DCT_ISLOW_SUPPORTED     /* slow but accurate integer algorithm */
267b775351012af176720429ac21d11682a0b75b4b7DRC#define DCT_IFAST_SUPPORTED     /* faster, less accurate integer method */
268b775351012af176720429ac21d11682a0b75b4b7DRC#define DCT_FLOAT_SUPPORTED     /* floating-point: accurate, fast on fast HW */
26936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
27036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Encoder capability options: */
27136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
272bc79e0680a45d1ca330d690dae0340c8e17ab5e3Thomas G. Lane#define C_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */
273b775351012af176720429ac21d11682a0b75b4b7DRC#define C_PROGRESSIVE_SUPPORTED     /* Progressive JPEG? (Requires MULTISCAN)*/
274b775351012af176720429ac21d11682a0b75b4b7DRC#define ENTROPY_OPT_SUPPORTED       /* Optimization of entropy coding parms? */
27536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Note: if you selected 12-bit data precision, it is dangerous to turn off
27636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * ENTROPY_OPT_SUPPORTED.  The standard Huffman tables are only good for 8-bit
27736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * precision, so jchuff.c normally uses entropy optimization to compute
27836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * usable tables for higher precision.  If you don't want to do optimization,
27936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * you'll have to supply different default Huffman tables.
280bc79e0680a45d1ca330d690dae0340c8e17ab5e3Thomas G. Lane * The exact same statements apply for progressive JPEG: the default tables
281bc79e0680a45d1ca330d690dae0340c8e17ab5e3Thomas G. Lane * don't work for progressive mode.  (This may get fixed, however.)
28236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
28336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define INPUT_SMOOTHING_SUPPORTED   /* Input image smoothing option? */
28436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
28536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Decoder capability options: */
28636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
28736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define D_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */
288b775351012af176720429ac21d11682a0b75b4b7DRC#define D_PROGRESSIVE_SUPPORTED     /* Progressive JPEG? (Requires MULTISCAN)*/
289b775351012af176720429ac21d11682a0b75b4b7DRC#define SAVE_MARKERS_SUPPORTED      /* jpeg_save_markers() needed? */
290bc79e0680a45d1ca330d690dae0340c8e17ab5e3Thomas G. Lane#define BLOCK_SMOOTHING_SUPPORTED   /* Block smoothing? (Progressive only) */
291b775351012af176720429ac21d11682a0b75b4b7DRC#define IDCT_SCALING_SUPPORTED      /* Output rescaling via IDCT? */
29236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#undef  UPSAMPLE_SCALING_SUPPORTED  /* Output rescaling at upsample stage? */
29336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define UPSAMPLE_MERGING_SUPPORTED  /* Fast path for sloppy upsampling? */
294b775351012af176720429ac21d11682a0b75b4b7DRC#define QUANT_1PASS_SUPPORTED       /* 1-pass color quantization? */
295b775351012af176720429ac21d11682a0b75b4b7DRC#define QUANT_2PASS_SUPPORTED       /* 2-pass color quantization? */
29636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
29736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* more capability options later, no doubt */
29836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
29936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
30036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/*
301976fd9687e5773f3653385da7a3489ce4d58dd51DRC * The RGB_RED, RGB_GREEN, RGB_BLUE, and RGB_PIXELSIZE macros are a vestigial
302976fd9687e5773f3653385da7a3489ce4d58dd51DRC * feature of libjpeg.  The idea was that, if an application developer needed
303976fd9687e5773f3653385da7a3489ce4d58dd51DRC * to compress from/decompress to a BGR/BGRX/RGBX/XBGR/XRGB buffer, they could
304976fd9687e5773f3653385da7a3489ce4d58dd51DRC * change these macros, rebuild libjpeg, and link their application statically
305976fd9687e5773f3653385da7a3489ce4d58dd51DRC * with it.  In reality, few people ever did this, because there were some
306976fd9687e5773f3653385da7a3489ce4d58dd51DRC * severe restrictions involved (cjpeg and djpeg no longer worked properly,
307976fd9687e5773f3653385da7a3489ce4d58dd51DRC * compressing/decompressing RGB JPEGs no longer worked properly, and the color
308976fd9687e5773f3653385da7a3489ce4d58dd51DRC * quantizer wouldn't work with pixel sizes other than 3.)  Further, since all
309976fd9687e5773f3653385da7a3489ce4d58dd51DRC * of the O/S-supplied versions of libjpeg were built with the default values
310976fd9687e5773f3653385da7a3489ce4d58dd51DRC * of RGB_RED, RGB_GREEN, RGB_BLUE, and RGB_PIXELSIZE, many applications have
311976fd9687e5773f3653385da7a3489ce4d58dd51DRC * come to regard these values as immutable.
312976fd9687e5773f3653385da7a3489ce4d58dd51DRC *
313976fd9687e5773f3653385da7a3489ce4d58dd51DRC * The libjpeg-turbo colorspace extensions provide a much cleaner way of
314976fd9687e5773f3653385da7a3489ce4d58dd51DRC * compressing from/decompressing to buffers with arbitrary component orders
315976fd9687e5773f3653385da7a3489ce4d58dd51DRC * and pixel sizes.  Thus, we do not support changing the values of RGB_RED,
316976fd9687e5773f3653385da7a3489ce4d58dd51DRC * RGB_GREEN, RGB_BLUE, or RGB_PIXELSIZE.  In addition to the restrictions
317976fd9687e5773f3653385da7a3489ce4d58dd51DRC * listed above, changing these values will also break the SIMD extensions and
318976fd9687e5773f3653385da7a3489ce4d58dd51DRC * the regression tests.
31936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
32036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
321b775351012af176720429ac21d11682a0b75b4b7DRC#define RGB_RED         0       /* Offset of Red in an RGB scanline element */
322b775351012af176720429ac21d11682a0b75b4b7DRC#define RGB_GREEN       1       /* Offset of Green */
323b775351012af176720429ac21d11682a0b75b4b7DRC#define RGB_BLUE        2       /* Offset of Blue */
324b775351012af176720429ac21d11682a0b75b4b7DRC#define RGB_PIXELSIZE   3       /* JSAMPLEs per RGB scanline element */
32536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
32667ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC#define JPEG_NUMCS 16
327f25c071eb745268452206bb633561b770c4d62eaDRC
328b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGB_RED        0
329b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGB_GREEN      1
330b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGB_BLUE       2
331b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGB_PIXELSIZE  3
332b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC
333b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGBX_RED       0
334b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGBX_GREEN     1
335b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGBX_BLUE      2
336b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_RGBX_PIXELSIZE 4
337b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC
338b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGR_RED        2
339b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGR_GREEN      1
340b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGR_BLUE       0
341b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGR_PIXELSIZE  3
342b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC
343b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGRX_RED       2
344b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGRX_GREEN     1
345b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGRX_BLUE      0
346b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_BGRX_PIXELSIZE 4
347b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC
348b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XBGR_RED       3
349b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XBGR_GREEN     2
350b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XBGR_BLUE      1
351b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XBGR_PIXELSIZE 4
352b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC
353b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XRGB_RED       1
354b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XRGB_GREEN     2
355b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XRGB_BLUE      3
356b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC#define EXT_XRGB_PIXELSIZE 4
357b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC
358f25c071eb745268452206bb633561b770c4d62eaDRCstatic const int rgb_red[JPEG_NUMCS] = {
359b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC  -1, -1, RGB_RED, -1, -1, -1, EXT_RGB_RED, EXT_RGBX_RED,
36067ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_BGR_RED, EXT_BGRX_RED, EXT_XBGR_RED, EXT_XRGB_RED,
36167ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_RGBX_RED, EXT_BGRX_RED, EXT_XBGR_RED, EXT_XRGB_RED
362f25c071eb745268452206bb633561b770c4d62eaDRC};
363f25c071eb745268452206bb633561b770c4d62eaDRC
364f25c071eb745268452206bb633561b770c4d62eaDRCstatic const int rgb_green[JPEG_NUMCS] = {
365b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC  -1, -1, RGB_GREEN, -1, -1, -1, EXT_RGB_GREEN, EXT_RGBX_GREEN,
36667ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_BGR_GREEN, EXT_BGRX_GREEN, EXT_XBGR_GREEN, EXT_XRGB_GREEN,
36767ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_RGBX_GREEN, EXT_BGRX_GREEN, EXT_XBGR_GREEN, EXT_XRGB_GREEN
368f25c071eb745268452206bb633561b770c4d62eaDRC};
369f25c071eb745268452206bb633561b770c4d62eaDRC
370f25c071eb745268452206bb633561b770c4d62eaDRCstatic const int rgb_blue[JPEG_NUMCS] = {
371b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC  -1, -1, RGB_BLUE, -1, -1, -1, EXT_RGB_BLUE, EXT_RGBX_BLUE,
37267ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_BGR_BLUE, EXT_BGRX_BLUE, EXT_XBGR_BLUE, EXT_XRGB_BLUE,
37367ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_RGBX_BLUE, EXT_BGRX_BLUE, EXT_XBGR_BLUE, EXT_XRGB_BLUE
374f25c071eb745268452206bb633561b770c4d62eaDRC};
375f25c071eb745268452206bb633561b770c4d62eaDRC
376f25c071eb745268452206bb633561b770c4d62eaDRCstatic const int rgb_pixelsize[JPEG_NUMCS] = {
377b4570bbf8cb3045e2b3cbf3d6a80d31735871d10DRC  -1, -1, RGB_PIXELSIZE, -1, -1, -1, EXT_RGB_PIXELSIZE, EXT_RGBX_PIXELSIZE,
37867ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_BGR_PIXELSIZE, EXT_BGRX_PIXELSIZE, EXT_XBGR_PIXELSIZE, EXT_XRGB_PIXELSIZE,
37967ce3b2352fe1f7511edbfed74ec6960e41e97dcDRC  EXT_RGBX_PIXELSIZE, EXT_BGRX_PIXELSIZE, EXT_XBGR_PIXELSIZE, EXT_XRGB_PIXELSIZE
380f25c071eb745268452206bb633561b770c4d62eaDRC};
38136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
38236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* Definitions for speed-related optimizations. */
38336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
38436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* On some machines (notably 68000 series) "int" is 32 bits, but multiplying
38536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * two 16-bit shorts is faster than multiplying two ints.  Define MULTIPLIER
38636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * as short on such a machine.  MULTIPLIER must be at least 16 bits wide.
38736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
38836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
38936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifndef MULTIPLIER
3905eb84ff97f00c02aadfdce0cb30ab3e899c1b113Pierre Ossman#ifndef WITH_SIMD
391b775351012af176720429ac21d11682a0b75b4b7DRC#define MULTIPLIER  int         /* type for fastest integer multiply */
3925eb84ff97f00c02aadfdce0cb30ab3e899c1b113Pierre Ossman#else
3935eb84ff97f00c02aadfdce0cb30ab3e899c1b113Pierre Ossman#define MULTIPLIER short  /* prefer 16-bit with SIMD for parellelism */
3945eb84ff97f00c02aadfdce0cb30ab3e899c1b113Pierre Ossman#endif
39536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
39636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
39736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
39836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane/* FAST_FLOAT should be either float or double, whichever is done faster
39936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * by your compiler.  (Note that this type is only used in the floating point
40036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * DCT routines, so it only matters if you've defined DCT_FLOAT_SUPPORTED.)
40136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * Typically, float is faster in ANSI C compilers, while double is faster in
40236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * pre-ANSI compilers (because they insist on converting to double anyway).
40336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane * The code below therefore chooses float if we have ANSI-style prototypes.
40436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane */
40536a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
40636a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifndef FAST_FLOAT
40736a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#ifdef HAVE_PROTOTYPES
40836a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define FAST_FLOAT  float
40936a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#else
41036a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#define FAST_FLOAT  double
41136a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
41236a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif
41336a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane
41436a4ccccd33f5cc9df62949554af87129ced7f84Thomas G. Lane#endif /* JPEG_INTERNAL_OPTIONS */
415