/src/libjpeg-turbo.main/jconfig.h
Line | Count | Source |
1 | | /* Version ID for the JPEG library. |
2 | | * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". |
3 | | */ |
4 | 215k | #define JPEG_LIB_VERSION 62 |
5 | | |
6 | | /* libjpeg-turbo version */ |
7 | | #define LIBJPEG_TURBO_VERSION 2.1.92 |
8 | | |
9 | | /* libjpeg-turbo version in integer form */ |
10 | | #define LIBJPEG_TURBO_VERSION_NUMBER 2001092 |
11 | | |
12 | | /* Support arithmetic encoding when using 8-bit samples */ |
13 | | #define C_ARITH_CODING_SUPPORTED 1 |
14 | | |
15 | | /* Support arithmetic decoding when using 8-bit samples */ |
16 | | #define D_ARITH_CODING_SUPPORTED 1 |
17 | | |
18 | | /* Support in-memory source/destination managers */ |
19 | | #define MEM_SRCDST_SUPPORTED 1 |
20 | | |
21 | | /* Use accelerated SIMD routines when using 8-bit samples */ |
22 | | #define WITH_SIMD 1 |
23 | | |
24 | | /* This version of libjpeg-turbo supports run-time selection of data precision, |
25 | | * so BITS_IN_JSAMPLE is no longer used to specify the data precision at build |
26 | | * time. However, some downstream software expects the macro to be defined. |
27 | | * Since 12-bit data precision is an opt-in feature that requires explicitly |
28 | | * calling 12-bit-specific libjpeg API functions and using 12-bit-specific data |
29 | | * types, the unmodified portion of the libjpeg API still behaves as if it were |
30 | | * built for 8-bit precision, and JSAMPLE is still literally an 8-bit data |
31 | | * type. Thus, it is correct to define BITS_IN_JSAMPLE to 8 here. |
32 | | */ |
33 | | #ifndef BITS_IN_JSAMPLE |
34 | 14.4M | #define BITS_IN_JSAMPLE 8 |
35 | | #endif |
36 | | |
37 | | #ifdef _WIN32 |
38 | | |
39 | | #undef RIGHT_SHIFT_IS_UNSIGNED |
40 | | |
41 | | /* Define "boolean" as unsigned char, not int, per Windows custom */ |
42 | | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ |
43 | | typedef unsigned char boolean; |
44 | | #endif |
45 | | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ |
46 | | |
47 | | /* Define "INT32" as int, not long, per Windows custom */ |
48 | | #if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */ |
49 | | typedef short INT16; |
50 | | typedef signed int INT32; |
51 | | #endif |
52 | | #define XMD_H /* prevent jmorecfg.h from redefining it */ |
53 | | |
54 | | #else |
55 | | |
56 | | /* Define if your (broken) compiler shifts signed values as if they were |
57 | | unsigned. */ |
58 | | /* #undef RIGHT_SHIFT_IS_UNSIGNED */ |
59 | | |
60 | | #endif |