Path: blob/master/thirdparty/libjpeg-turbo/src/jconfig.h
9904 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.0910/* libjpeg-turbo version in integer form */11#define LIBJPEG_TURBO_VERSION_NUMBER 30010001213/* 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//#define WITH_SIMD 12425/* This version of libjpeg-turbo supports run-time selection of data precision,26* so BITS_IN_JSAMPLE is no longer used to specify the data precision at build27* time. However, some downstream software expects the macro to be defined.28* Since 12-bit data precision is an opt-in feature that requires explicitly29* calling 12-bit-specific libjpeg API functions and using 12-bit-specific data30* types, the unmodified portion of the libjpeg API still behaves as if it were31* built for 8-bit precision, and JSAMPLE is still literally an 8-bit data32* type. Thus, it is correct to define BITS_IN_JSAMPLE to 8 here.33*/34#ifndef BITS_IN_JSAMPLE35#define BITS_IN_JSAMPLE 836#endif3738#ifdef _WIN323940#undef RIGHT_SHIFT_IS_UNSIGNED4142/* Define "boolean" as unsigned char, not int, per Windows custom */43#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */44typedef unsigned char boolean;45#endif46#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */4748/* Define "INT32" as int, not long, per Windows custom */49#if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */50typedef short INT16;51typedef signed int INT32;52#endif53#define XMD_H /* prevent jmorecfg.h from redefining it */5455#else5657/* Define if your (broken) compiler shifts signed values as if they were58unsigned. */59/* #undef RIGHT_SHIFT_IS_UNSIGNED */6061#endif626364