zdoom-macos-deps/deps/jpeg-turbo/include/jconfig.h

61 lines
2 KiB
C
Raw Normal View History

/* Version ID for the JPEG library.
* Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
*/
2018-08-05 06:37:04 +00:00
#define JPEG_LIB_VERSION 62
/* libjpeg-turbo version */
2023-07-04 06:44:07 +00:00
#define LIBJPEG_TURBO_VERSION 3.0.0
/* libjpeg-turbo version in integer form */
2023-07-04 06:44:07 +00:00
#define LIBJPEG_TURBO_VERSION_NUMBER 3000000
2023-07-04 06:44:07 +00:00
/* Support arithmetic encoding when using 8-bit samples */
2018-12-17 16:34:24 +00:00
#define C_ARITH_CODING_SUPPORTED 1
2023-07-04 06:44:07 +00:00
/* Support arithmetic decoding when using 8-bit samples */
2018-12-17 16:34:24 +00:00
#define D_ARITH_CODING_SUPPORTED 1
2018-08-05 06:37:04 +00:00
/* Support in-memory source/destination managers */
2023-07-04 06:44:07 +00:00
#define MEM_SRCDST_SUPPORTED 1
2018-08-05 06:37:04 +00:00
2023-07-04 06:44:07 +00:00
/* Use accelerated SIMD routines when using 8-bit samples */
2018-12-17 16:34:24 +00:00
#define WITH_SIMD 1
2023-07-04 06:44:07 +00:00
/* This version of libjpeg-turbo supports run-time selection of data precision,
* so BITS_IN_JSAMPLE is no longer used to specify the data precision at build
* time. However, some downstream software expects the macro to be defined.
* Since 12-bit data precision is an opt-in feature that requires explicitly
* calling 12-bit-specific libjpeg API functions and using 12-bit-specific data
* types, the unmodified portion of the libjpeg API still behaves as if it were
* built for 8-bit precision, and JSAMPLE is still literally an 8-bit data
* type. Thus, it is correct to define BITS_IN_JSAMPLE to 8 here.
*/
2023-07-04 06:44:07 +00:00
#ifndef BITS_IN_JSAMPLE
#define BITS_IN_JSAMPLE 8
#endif
2023-07-04 06:44:07 +00:00
#ifdef _WIN32
#undef RIGHT_SHIFT_IS_UNSIGNED
/* Define "boolean" as unsigned char, not int, per Windows custom */
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
typedef unsigned char boolean;
#endif
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
/* Define "INT32" as int, not long, per Windows custom */
#if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
typedef short INT16;
typedef signed int INT32;
#endif
#define XMD_H /* prevent jmorecfg.h from redefining it */
#else
/* Define if your (broken) compiler shifts signed values as if they were
unsigned. */
/* #undef RIGHT_SHIFT_IS_UNSIGNED */
2023-07-04 06:44:07 +00:00
#endif