OLD | NEW |
1 /* | 1 /* |
2 * jpeglib.h | 2 * jpeglib.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-1998, Thomas G. Lane. | 5 * Copyright (C) 1991-1998, Thomas G. Lane. |
6 * Modified 2002-2009 by Guido Vollbeding. | 6 * Modified 2002-2009 by Guido Vollbeding. |
7 * Modifications: | 7 * Modifications: |
8 * Copyright (C) 2009-2011, 2013, D. R. Commander. | 8 * Copyright (C) 2009-2011, 2013-2014, D. R. Commander. |
9 * Copyright (C) 2015, Google, Inc. | 9 * Copyright (C) 2015, Google, Inc. |
10 * For conditions of distribution and use, see the accompanying README file. | 10 * For conditions of distribution and use, see the accompanying README file. |
11 * | 11 * |
12 * This file defines the application interface for the JPEG library. | 12 * This file defines the application interface for the JPEG library. |
13 * Most applications using the library need only include this file, | 13 * Most applications using the library need only include this file, |
14 * and perhaps jerror.h if they want to know the exact error codes. | 14 * and perhaps jerror.h if they want to know the exact error codes. |
15 */ | 15 */ |
16 | 16 |
17 #ifndef JPEGLIB_H | 17 #ifndef JPEGLIB_H |
18 #define JPEGLIB_H | 18 #define JPEGLIB_H |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 /* When out_color_space it set to JCS_EXT_RGBX, JCS_EXT_BGRX, | 236 /* When out_color_space it set to JCS_EXT_RGBX, JCS_EXT_BGRX, |
237 JCS_EXT_XBGR, or JCS_EXT_XRGB during decompression, the X byte is | 237 JCS_EXT_XBGR, or JCS_EXT_XRGB during decompression, the X byte is |
238 undefined, and in order to ensure the best performance, | 238 undefined, and in order to ensure the best performance, |
239 libjpeg-turbo can set that byte to whatever value it wishes. Use | 239 libjpeg-turbo can set that byte to whatever value it wishes. Use |
240 the following colorspace constants to ensure that the X byte is set | 240 the following colorspace constants to ensure that the X byte is set |
241 to 0xFF, so that it can be interpreted as an opaque alpha | 241 to 0xFF, so that it can be interpreted as an opaque alpha |
242 channel. */ | 242 channel. */ |
243 JCS_EXT_RGBA, /* red/green/blue/alpha */ | 243 JCS_EXT_RGBA, /* red/green/blue/alpha */ |
244 JCS_EXT_BGRA, /* blue/green/red/alpha */ | 244 JCS_EXT_BGRA, /* blue/green/red/alpha */ |
245 JCS_EXT_ABGR, /* alpha/blue/green/red */ | 245 JCS_EXT_ABGR, /* alpha/blue/green/red */ |
246 » JCS_EXT_ARGB» » /* alpha/red/green/blue */ | 246 » JCS_EXT_ARGB,» » /* alpha/red/green/blue */ |
| 247 JCS_RGB565 /* 5-bit red/6-bit green/5-bit blue */ |
247 } J_COLOR_SPACE; | 248 } J_COLOR_SPACE; |
248 | 249 |
249 /* DCT/IDCT algorithm options. */ | 250 /* DCT/IDCT algorithm options. */ |
250 | 251 |
251 typedef enum { | 252 typedef enum { |
252 JDCT_ISLOW, /* slow but accurate integer algorithm */ | 253 JDCT_ISLOW, /* slow but accurate integer algorithm */ |
253 JDCT_IFAST, /* faster, less accurate integer method */ | 254 JDCT_IFAST, /* faster, less accurate integer method */ |
254 JDCT_FLOAT /* floating-point: accurate, fast on fast HW */ | 255 JDCT_FLOAT /* floating-point: accurate, fast on fast HW */ |
255 } J_DCT_METHOD; | 256 } J_DCT_METHOD; |
256 | 257 |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 #include "jerror.h" /* fetch error codes too */ | 1213 #include "jerror.h" /* fetch error codes too */ |
1213 #endif | 1214 #endif |
1214 | 1215 |
1215 #ifdef __cplusplus | 1216 #ifdef __cplusplus |
1216 #ifndef DONT_USE_EXTERN_C | 1217 #ifndef DONT_USE_EXTERN_C |
1217 } | 1218 } |
1218 #endif | 1219 #endif |
1219 #endif | 1220 #endif |
1220 | 1221 |
1221 #endif /* JPEGLIB_H */ | 1222 #endif /* JPEGLIB_H */ |
OLD | NEW |