OLD | NEW |
1 /* | 1 /* |
2 * jmorecfg.h | 2 * jmorecfg.h |
3 * | 3 * |
4 * Copyright (C) 1991-1997, Thomas G. Lane. | 4 * Copyright (C) 1991-1997, Thomas G. Lane. |
5 * Copyright (C) 2009, D. R. Commander. | 5 * Copyright (C) 2009, D. R. Commander. |
6 * This file is part of the Independent JPEG Group's software. | 6 * This file is part of the Independent JPEG Group's software. |
7 * For conditions of distribution and use, see the accompanying README file. | 7 * For conditions of distribution and use, see the accompanying README file. |
8 * | 8 * |
9 * This file contains additional configuration options that customize the | 9 * This file contains additional configuration options that customize the |
10 * JPEG software for special applications or support machine-dependent | 10 * JPEG software for special applications or support machine-dependent |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 /* INT16 must hold at least the values -32768..32767. */ | 153 /* INT16 must hold at least the values -32768..32767. */ |
154 | 154 |
155 #ifndef XMD_H /* X11/xmd.h correctly defines INT16 */ | 155 #ifndef XMD_H /* X11/xmd.h correctly defines INT16 */ |
156 typedef short INT16; | 156 typedef short INT16; |
157 #endif | 157 #endif |
158 | 158 |
159 /* INT32 must hold at least signed 32-bit values. */ | 159 /* INT32 must hold at least signed 32-bit values. */ |
160 | 160 |
161 #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ | 161 #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ |
| 162 #ifndef _BASETSD_H_ /* basetsd.h correctly defines INT32 */ |
162 typedef long INT32; | 163 typedef long INT32; |
163 #endif | 164 #endif |
| 165 #endif |
164 | 166 |
165 /* Datatype used for image dimensions. The JPEG standard only supports | 167 /* Datatype used for image dimensions. The JPEG standard only supports |
166 * images up to 64K*64K due to 16-bit fields in SOF markers. Therefore | 168 * images up to 64K*64K due to 16-bit fields in SOF markers. Therefore |
167 * "unsigned int" is sufficient on all machines. However, if you need to | 169 * "unsigned int" is sufficient on all machines. However, if you need to |
168 * handle larger images and you don't mind deviating from the spec, you | 170 * handle larger images and you don't mind deviating from the spec, you |
169 * can change this datatype. | 171 * can change this datatype. |
170 */ | 172 */ |
171 | 173 |
172 typedef unsigned int JDIMENSION; | 174 typedef unsigned int JDIMENSION; |
173 | 175 |
(...skipping 29 matching lines...) Expand all Loading... |
203 #define JMETHOD(type,methodname,arglist) type (*methodname) () | 205 #define JMETHOD(type,methodname,arglist) type (*methodname) () |
204 #endif | 206 #endif |
205 | 207 |
206 | 208 |
207 /* Here is the pseudo-keyword for declaring pointers that must be "far" | 209 /* Here is the pseudo-keyword for declaring pointers that must be "far" |
208 * on 80x86 machines. Most of the specialized coding for 80x86 is handled | 210 * on 80x86 machines. Most of the specialized coding for 80x86 is handled |
209 * by just saying "FAR *" where such a pointer is needed. In a few places | 211 * by just saying "FAR *" where such a pointer is needed. In a few places |
210 * explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol. | 212 * explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol. |
211 */ | 213 */ |
212 | 214 |
| 215 #ifndef FAR |
213 #ifdef NEED_FAR_POINTERS | 216 #ifdef NEED_FAR_POINTERS |
214 #define FAR far | 217 #define FAR far |
215 #else | 218 #else |
216 #define FAR | 219 #define FAR |
217 #endif | 220 #endif |
| 221 #endif |
218 | 222 |
219 | 223 |
220 /* | 224 /* |
221 * On a few systems, type boolean and/or its values FALSE, TRUE may appear | 225 * On a few systems, type boolean and/or its values FALSE, TRUE may appear |
222 * in standard header files. Or you may have conflicts with application- | 226 * in standard header files. Or you may have conflicts with application- |
223 * specific header files that you want to include together with these files. | 227 * specific header files that you want to include together with these files. |
224 * Defining HAVE_BOOLEAN before including jpeglib.h should make it work. | 228 * Defining HAVE_BOOLEAN before including jpeglib.h should make it work. |
225 */ | 229 */ |
226 | 230 |
227 #ifndef HAVE_BOOLEAN | 231 #ifndef HAVE_BOOLEAN |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 365 |
362 #ifndef FAST_FLOAT | 366 #ifndef FAST_FLOAT |
363 #ifdef HAVE_PROTOTYPES | 367 #ifdef HAVE_PROTOTYPES |
364 #define FAST_FLOAT float | 368 #define FAST_FLOAT float |
365 #else | 369 #else |
366 #define FAST_FLOAT double | 370 #define FAST_FLOAT double |
367 #endif | 371 #endif |
368 #endif | 372 #endif |
369 | 373 |
370 #endif /* JPEG_INTERNAL_OPTIONS */ | 374 #endif /* JPEG_INTERNAL_OPTIONS */ |
OLD | NEW |