Path: blob/master/thirdparty/libjpeg-turbo/src/jconfigint.h
9904 views
// Originally generated by libjpeg-turbo's cmake build, then modified to support multiple platforms.12/* libjpeg-turbo build number */3#define BUILD "20250317"45/* How to hide global symbols. */6#ifndef HIDDEN7#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)8#define HIDDEN __attribute__((visibility("hidden")))9#else10#define HIDDEN11#endif12#endif1314/* Compiler's inline keyword */15#undef inline1617/* How to obtain function inlining. */18#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)19#define INLINE __inline__ __attribute__((always_inline))20#else21#define INLINE inline22#endif2324/* How to obtain thread-local storage */25#if defined(_MSC_VER)26#define THREAD_LOCAL __declspec(thread)27#else28#define THREAD_LOCAL __thread29#endif3031/* Define to the full name of this package. */32#define PACKAGE_NAME "libjpeg-turbo"3334/* Version number of package */35#define VERSION "3.1.0"3637/* The size of `size_t', as computed by sizeof. */38#if defined(__SIZEOF_SIZE_T__)39#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__40#elif defined(_WIN64)41#define SIZEOF_SIZE_T 842#elif defined(_WIN32)43#define SIZEOF_SIZE_T 444#else45#error "Cannot determine size of size_t"46#endif4748/* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */49#if defined(__GNUC__)50#define HAVE_BUILTIN_CTZL51#endif5253/* Define to 1 if you have the <intrin.h> header file. */54/* #undef HAVE_INTRIN_H */5556#if defined(_MSC_VER) && defined(HAVE_INTRIN_H)57#if (SIZEOF_SIZE_T == 8)58#define HAVE_BITSCANFORWARD6459#elif (SIZEOF_SIZE_T == 4)60#define HAVE_BITSCANFORWARD61#endif62#endif6364#if defined(__has_attribute)65#if __has_attribute(fallthrough)66#define FALLTHROUGH __attribute__((fallthrough));67#else68#define FALLTHROUGH69#endif70#else71#define FALLTHROUGH72#endif7374/*75* Define BITS_IN_JSAMPLE as either76* 8 for 8-bit sample values (the usual setting)77* 12 for 12-bit sample values78* Only 8 and 12 are legal data precisions for lossy JPEG according to the79* JPEG standard, and the IJG code does not support anything else!80*/8182#ifndef BITS_IN_JSAMPLE83#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */84#endif8586#undef C_ARITH_CODING_SUPPORTED87#undef D_ARITH_CODING_SUPPORTED88#undef WITH_SIMD8990#if BITS_IN_JSAMPLE == 89192/* Support arithmetic encoding */93#define C_ARITH_CODING_SUPPORTED 19495/* Support arithmetic decoding */96#define D_ARITH_CODING_SUPPORTED 19798/* Use accelerated SIMD routines. */99//#define WITH_SIMD 1100101#endif102103104