jconfig.h
Go to the documentation of this file.
1 /* Version ID for the JPEG library.
2  * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
3  */
4 #define JPEG_LIB_VERSION 80
5 
6 /* libjpeg-turbo version */
7 #define LIBJPEG_TURBO_VERSION
8 
9 /* libjpeg-turbo version in integer form */
10 #define LIBJPEG_TURBO_VERSION_NUMBER 3001004
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 /* #undef WITH_SIMD */
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 #define BITS_IN_JSAMPLE 8
35 #endif
36 
37 #define JPEG_SHARED_LIBS 1
38 
39 #ifdef _WIN32
40 
41 #undef RIGHT_SHIFT_IS_UNSIGNED
42 
43 /* Define "boolean" as unsigned char, not int, per Windows custom */
44 #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
45 typedef unsigned char boolean;
46 #endif
47 #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
48 
49 /* Define "INT32" as int, not long, per Windows custom */
50 #if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
51 typedef short INT16;
52 typedef signed int INT32;
53 #endif
54 #define XMD_H /* prevent jmorecfg.h from redefining it */
55 
56 #else
57 
58 /* Define if your (broken) compiler shifts signed values as if they were
59  unsigned. */
60 /* #undef RIGHT_SHIFT_IS_UNSIGNED */
61 
62 #endif