jconfig.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /******************************************************************************/
  2. #define JPEG_LIB_VERSION 80
  3. #define LIBJPEG_TURBO_VERSION 1.4.1
  4. #define C_ARITH_CODING_SUPPORTED
  5. #define D_ARITH_CODING_SUPPORTED
  6. #define MEM_SRCDST_SUPPORTED
  7. /*
  8. * Define BITS_IN_JSAMPLE as either
  9. * 8 for 8-bit sample values (the usual setting)
  10. * 12 for 12-bit sample values
  11. * Only 8 and 12 are legal data precisions for lossy JPEG according to the
  12. * JPEG standard, and the IJG code does not support anything else!
  13. * We do not support run-time selection of data precision, sorry.
  14. */
  15. #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
  16. /* The size of `size_t', as computed by sizeof. */
  17. #if defined _WIN64 || defined __LP64__
  18. #define SIZEOF_SIZE_T 8
  19. #else
  20. #define SIZEOF_SIZE_T 4
  21. #endif
  22. /* Use accelerated SIMD routines. */
  23. #ifndef WITH_SIMD
  24. #ifdef _WIN32
  25. #define WITH_SIMD 1
  26. #elif defined __APPLE__
  27. #include <TargetConditionals.h>
  28. #if !TARGET_IPHONE_SIMULATOR // use SIMD everywhere except iOS Simulator
  29. #define WITH_SIMD 1
  30. #endif
  31. #elif defined __linux__ && !defined ANDROID
  32. #define WITH_SIMD 1
  33. #elif defined ANDROID
  34. #ifdef __arm__ // use only on ARM
  35. #define WITH_SIMD 1
  36. #endif
  37. #elif defined EMSCRIPTEN
  38. #else
  39. #error unknown platform
  40. #endif
  41. #endif
  42. /******************************************************************************/
  43. #ifdef _WIN32
  44. /******************************************************************************/
  45. #define HAVE_UNSIGNED_CHAR
  46. #define HAVE_UNSIGNED_SHORT
  47. /* #define void char */
  48. /* #define const */
  49. #undef __CHAR_UNSIGNED__
  50. #define HAVE_STDDEF_H
  51. #define HAVE_STDLIB_H
  52. #undef NEED_BSD_STRINGS
  53. #undef NEED_SYS_TYPES_H
  54. #undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */
  55. #undef INCOMPLETE_TYPES_BROKEN
  56. /* Define "boolean" as unsigned char, not int, per Windows custom */
  57. #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
  58. typedef unsigned char boolean;
  59. #endif
  60. #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
  61. /* Define "INT32" as int, not long, per Windows custom */
  62. #if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
  63. typedef short INT16;
  64. typedef signed int INT32;
  65. #endif
  66. #define XMD_H /* prevent jmorecfg.h from redefining it */
  67. #ifdef JPEG_INTERNALS
  68. #undef RIGHT_SHIFT_IS_UNSIGNED
  69. #endif /* JPEG_INTERNALS */
  70. /******************************************************************************/
  71. #else
  72. /******************************************************************************/
  73. /* Define to 1 if you have the <locale.h> header file. */
  74. #define HAVE_LOCALE_H 1
  75. /* Define to 1 if you have the <stddef.h> header file. */
  76. #define HAVE_STDDEF_H 1
  77. /* Define to 1 if you have the <stdlib.h> header file. */
  78. #define HAVE_STDLIB_H 1
  79. /* Define to 1 if the system has the type `unsigned char'. */
  80. #define HAVE_UNSIGNED_CHAR 1
  81. /* Define to 1 if the system has the type `unsigned short'. */
  82. #define HAVE_UNSIGNED_SHORT 1
  83. /* Compiler does not support pointers to undefined structures. */
  84. /* #undef INCOMPLETE_TYPES_BROKEN */
  85. /* Define if you have BSD-like bzero and bcopy in <strings.h> rather than
  86. memset/memcpy in <string.h>. */
  87. /* #undef NEED_BSD_STRINGS */
  88. /* Define if you need to include <sys/types.h> to get size_t. */
  89. #define NEED_SYS_TYPES_H 1
  90. /* Define if your (broken) compiler shifts signed values as if they were
  91. unsigned. */
  92. /* #undef RIGHT_SHIFT_IS_UNSIGNED */
  93. /* Define to 1 if type `char' is unsigned and you are not using gcc. */
  94. #ifndef __CHAR_UNSIGNED__
  95. /* # undef __CHAR_UNSIGNED__ */
  96. #endif
  97. /* Define to empty if `const' does not conform to ANSI C. */
  98. /* #undef const */
  99. /* Define to `unsigned int' if <sys/types.h> does not define. */
  100. /* #undef size_t */
  101. /******************************************************************************/
  102. #endif
  103. /******************************************************************************/