Path: blob/master/thirdparty/libjpeg-turbo/src/jconfig.h
21798 views
// Originally generated by libjpeg-turbo's cmake build, then modified to support multiple platforms.12/* Version ID for the JPEG library.3* Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".4*/5#define JPEG_LIB_VERSION 6267/* libjpeg-turbo version */8#define LIBJPEG_TURBO_VERSION 3.1.3910/* libjpeg-turbo version in integer form */11#define LIBJPEG_TURBO_VERSION_NUMBER 30010031213/* Support arithmetic encoding when using 8-bit samples */14#define C_ARITH_CODING_SUPPORTED 11516/* Support arithmetic decoding when using 8-bit samples */17#define D_ARITH_CODING_SUPPORTED 11819/* Support in-memory source/destination managers */20#define MEM_SRCDST_SUPPORTED 12122/* Use accelerated SIMD routines when using 8-bit samples */23// Godot: Disabled for simplicity of compiling the library cross-platform.24// Could be enabled if it's confirmed to be worth the effort.25//#define WITH_SIMD 12627// Godot: Disable those as they're for forcing different SIMD CPU support28// via environment variables, that's super niche and we don't build with SIMD.29#define NO_GETENV30#define NO_PUTENV3132/* This version of libjpeg-turbo supports run-time selection of data precision,33* so BITS_IN_JSAMPLE is no longer used to specify the data precision at build34* time. However, some downstream software expects the macro to be defined.35* Since 12-bit data precision is an opt-in feature that requires explicitly36* calling 12-bit-specific libjpeg API functions and using 12-bit-specific data37* types, the unmodified portion of the libjpeg API still behaves as if it were38* built for 8-bit precision, and JSAMPLE is still literally an 8-bit data39* type. Thus, it is correct to define BITS_IN_JSAMPLE to 8 here.40*/41#ifndef BITS_IN_JSAMPLE42#define BITS_IN_JSAMPLE 843#endif4445#ifdef _WIN324647#undef RIGHT_SHIFT_IS_UNSIGNED4849/* Define "boolean" as unsigned char, not int, per Windows custom */50#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */51typedef unsigned char boolean;52#endif53#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */5455/* Define "INT32" as int, not long, per Windows custom */56#if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */57typedef short INT16;58typedef signed int INT32;59#endif60#define XMD_H /* prevent jmorecfg.h from redefining it */6162#else6364/* Define if your (broken) compiler shifts signed values as if they were65unsigned. */66/* #undef RIGHT_SHIFT_IS_UNSIGNED */6768#endif697071