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