xref: /aosp_15_r20/external/libjpeg-turbo/jconfig.h.in (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  @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/* Support arithmetic encoding */
13#cmakedefine C_ARITH_CODING_SUPPORTED 1
14
15/* Support arithmetic decoding */
16#cmakedefine D_ARITH_CODING_SUPPORTED 1
17
18/* Support in-memory source/destination managers */
19#cmakedefine MEM_SRCDST_SUPPORTED 1
20
21/* Use accelerated SIMD routines. */
22#cmakedefine 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 */
27typedef 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  @BITS_IN_JSAMPLE@      /* use 8 or 12 */
42
43/* Define if your (broken) compiler shifts signed values as if they were
44   unsigned. */
45#cmakedefine RIGHT_SHIFT_IS_UNSIGNED 1
46