xref: /aosp_15_r20/external/libjpeg-turbo/jconfig.h (revision dfc6aa5c1cfd4bc4e2018dc74aa96e29ee49c6da)
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  62
5 
6 /* libjpeg-turbo version */
7 #define LIBJPEG_TURBO_VERSION  2.1.5.1
8 
9 /* libjpeg-turbo version in integer form */
10 #define LIBJPEG_TURBO_VERSION_NUMBER  2001005
11 
12 /* Support arithmetic encoding */
13 #define C_ARITH_CODING_SUPPORTED 1
14 
15 /* Support arithmetic decoding */
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. */
22 #define WITH_SIMD 1
23 
24 #ifdef _WIN32
25 /* Define "boolean" as unsigned char, not int, per Windows custom */
26 #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
27 typedef unsigned char boolean;
28 #endif
29 #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
30 #endif
31 
32 /*
33  * Define BITS_IN_JSAMPLE as either
34  *   8   for 8-bit sample values (the usual setting)
35  *   12  for 12-bit sample values
36  * Only 8 and 12 are legal data precisions for lossy JPEG according to the
37  * JPEG standard, and the IJG code does not support anything else!
38  * We do not support run-time selection of data precision, sorry.
39  */
40 
41 #define BITS_IN_JSAMPLE  8      /* use 8 or 12 */
42 
43 /* Define if your (broken) compiler shifts signed values as if they were
44    unsigned. */
45 /* #undef RIGHT_SHIFT_IS_UNSIGNED */
46