Skip to content
0.2.0-dev Download ZIP
69 lines ·2.4 KB Raw
1// Originally generated by libjpeg-turbo's cmake build, then modified to support multiple platforms.
2
3/* Version ID for the JPEG library.
4 * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
5 */
6#define JPEG_LIB_VERSION 62
7
8/* libjpeg-turbo version */
9#define LIBJPEG_TURBO_VERSION 3.1.3
10
11/* libjpeg-turbo version in integer form */
12#define LIBJPEG_TURBO_VERSION_NUMBER 3001003
13
14/* Support arithmetic encoding when using 8-bit samples */
15#define C_ARITH_CODING_SUPPORTED 1
16
17/* Support arithmetic decoding when using 8-bit samples */
18#define D_ARITH_CODING_SUPPORTED 1
19
20/* Support in-memory source/destination managers */
21#define MEM_SRCDST_SUPPORTED 1
22
23/* Use accelerated SIMD routines when using 8-bit samples */
24// Godot: Disabled for simplicity of compiling the library cross-platform.
25// Could be enabled if it's confirmed to be worth the effort.
26//#define WITH_SIMD 1
27
28// Godot: Disable those as they're for forcing different SIMD CPU support
29// via environment variables, that's super niche and we don't build with SIMD.
30#define NO_GETENV
31#define NO_PUTENV
32
33/* This version of libjpeg-turbo supports run-time selection of data precision,
34 * so BITS_IN_JSAMPLE is no longer used to specify the data precision at build
35 * time. However, some downstream software expects the macro to be defined.
36 * Since 12-bit data precision is an opt-in feature that requires explicitly
37 * calling 12-bit-specific libjpeg API functions and using 12-bit-specific data
38 * types, the unmodified portion of the libjpeg API still behaves as if it were
39 * built for 8-bit precision, and JSAMPLE is still literally an 8-bit data
40 * type. Thus, it is correct to define BITS_IN_JSAMPLE to 8 here.
41 */
42#ifndef BITS_IN_JSAMPLE
43#define BITS_IN_JSAMPLE 8
44#endif
45
46#ifdef _WIN32
47
48#undef RIGHT_SHIFT_IS_UNSIGNED
49
50/* Define "boolean" as unsigned char, not int, per Windows custom */
51#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
52typedef unsigned char boolean;
53#endif
54#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
55
56/* Define "INT32" as int, not long, per Windows custom */
57#if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
58typedef short INT16;
59typedef signed int INT32;
60#endif
61#define XMD_H /* prevent jmorecfg.h from redefining it */
62
63#else
64
65/* Define if your (broken) compiler shifts signed values as if they were
66 unsigned. */
67/* #undef RIGHT_SHIFT_IS_UNSIGNED */
68
69#endif