OLD | NEW |
1 /* | 1 /* |
2 * jmorecfg.h | 2 * jmorecfg.h |
3 * | 3 * |
4 * This file was part of the Independent JPEG Group's software: | 4 * This file was part of the Independent JPEG Group's software: |
5 * Copyright (C) 1991-1997, Thomas G. Lane. | 5 * Copyright (C) 1991-1997, Thomas G. Lane. |
6 * Modifications: | 6 * Modifications: |
7 * Copyright (C) 2009, 2011, 2014, D. R. Commander. | 7 * Copyright (C) 2009, 2011, 2014, D. R. Commander. |
8 * For conditions of distribution and use, see the accompanying README file. | 8 * For conditions of distribution and use, see the accompanying README file. |
9 * | 9 * |
10 * This file contains additional configuration options that customize the | 10 * This file contains additional configuration options that customize the |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ | 164 #ifndef XMD_H /* X11/xmd.h correctly defines INT32 */ |
165 #ifndef _BASETSD_H_ /* basetsd.h correctly defines INT32 */ | 165 #ifndef _BASETSD_H_ /* basetsd.h correctly defines INT32 */ |
166 typedef long INT32; | 166 typedef long INT32; |
167 #endif | 167 #endif |
168 #endif | 168 #endif |
169 | 169 |
170 /* Datatype used for image dimensions. The JPEG standard only supports | 170 /* Datatype used for image dimensions. The JPEG standard only supports |
171 * images up to 64K*64K due to 16-bit fields in SOF markers. Therefore | 171 * images up to 64K*64K due to 16-bit fields in SOF markers. Therefore |
172 * "unsigned int" is sufficient on all machines. However, if you need to | 172 * "unsigned int" is sufficient on all machines. However, if you need to |
173 * handle larger images and you don't mind deviating from the spec, you | 173 * handle larger images and you don't mind deviating from the spec, you |
174 * can change this datatype. | 174 * can change this datatype. Note that changing this type will require |
| 175 * potentially updating the assembly code to correctly use the new type |
| 176 * size. |
175 */ | 177 */ |
176 | 178 |
177 typedef unsigned int JDIMENSION; | 179 typedef unsigned int JDIMENSION; |
178 | 180 |
179 #define JPEG_MAX_DIMENSION 65500L /* a tad under 64K to prevent overflows */ | 181 #define JPEG_MAX_DIMENSION 65500L /* a tad under 64K to prevent overflows */ |
180 | 182 |
181 | 183 |
182 /* These macros are used in all function definitions and extern declarations. | 184 /* These macros are used in all function definitions and extern declarations. |
183 * You could modify them if you need to change function linkage conventions; | 185 * You could modify them if you need to change function linkage conventions; |
184 * in particular, you'll need to do that to make the library a Windows DLL. | 186 * in particular, you'll need to do that to make the library a Windows DLL. |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 411 |
410 #ifndef FAST_FLOAT | 412 #ifndef FAST_FLOAT |
411 #ifdef HAVE_PROTOTYPES | 413 #ifdef HAVE_PROTOTYPES |
412 #define FAST_FLOAT float | 414 #define FAST_FLOAT float |
413 #else | 415 #else |
414 #define FAST_FLOAT double | 416 #define FAST_FLOAT double |
415 #endif | 417 #endif |
416 #endif | 418 #endif |
417 | 419 |
418 #endif /* JPEG_INTERNAL_OPTIONS */ | 420 #endif /* JPEG_INTERNAL_OPTIONS */ |
OLD | NEW |