jconfigint.h.in 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* libjpeg-turbo build number */
  2. #define BUILD "@BUILD@"
  3. /* How to hide global symbols. */
  4. #define HIDDEN @HIDDEN@
  5. /* Compiler's inline keyword */
  6. #undef inline
  7. /* How to obtain function inlining. */
  8. #define INLINE @INLINE@
  9. /* How to obtain thread-local storage */
  10. #define THREAD_LOCAL @THREAD_LOCAL@
  11. /* Define to the full name of this package. */
  12. #define PACKAGE_NAME "@CMAKE_PROJECT_NAME@"
  13. /* Version number of package */
  14. #define VERSION "@VERSION@"
  15. /* The size of `size_t', as computed by sizeof. */
  16. #define SIZEOF_SIZE_T @SIZE_T@
  17. /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */
  18. #cmakedefine HAVE_BUILTIN_CTZL
  19. /* Define to 1 if you have the <intrin.h> header file. */
  20. #cmakedefine HAVE_INTRIN_H
  21. #if defined(_MSC_VER) && defined(HAVE_INTRIN_H)
  22. #if (SIZEOF_SIZE_T == 8)
  23. #define HAVE_BITSCANFORWARD64
  24. #elif (SIZEOF_SIZE_T == 4)
  25. #define HAVE_BITSCANFORWARD
  26. #endif
  27. #endif
  28. #if defined(__has_attribute)
  29. #if __has_attribute(fallthrough)
  30. #define FALLTHROUGH __attribute__((fallthrough));
  31. #else
  32. #define FALLTHROUGH
  33. #endif
  34. #else
  35. #define FALLTHROUGH
  36. #endif
  37. /*
  38. * Define BITS_IN_JSAMPLE as either
  39. * 8 for 8-bit sample values (the usual setting)
  40. * 12 for 12-bit sample values
  41. * Only 8 and 12 are legal data precisions for lossy JPEG according to the
  42. * JPEG standard, and the IJG code does not support anything else!
  43. */
  44. #ifndef BITS_IN_JSAMPLE
  45. #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
  46. #endif
  47. #undef C_ARITH_CODING_SUPPORTED
  48. #undef D_ARITH_CODING_SUPPORTED
  49. #undef WITH_SIMD
  50. #if BITS_IN_JSAMPLE == 8
  51. /* Support arithmetic encoding */
  52. #cmakedefine C_ARITH_CODING_SUPPORTED 1
  53. /* Support arithmetic decoding */
  54. #cmakedefine D_ARITH_CODING_SUPPORTED 1
  55. /* Use accelerated SIMD routines. */
  56. #cmakedefine WITH_SIMD 1
  57. #endif