jconfig.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Version ID for the JPEG library.
  2. * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
  3. */
  4. #define JPEG_LIB_VERSION 62
  5. /* libjpeg-turbo version */
  6. #define LIBJPEG_TURBO_VERSION 3.0.3
  7. /* libjpeg-turbo version in integer form */
  8. #define LIBJPEG_TURBO_VERSION_NUMBER 3000003
  9. /* Support arithmetic encoding when using 8-bit samples */
  10. #define C_ARITH_CODING_SUPPORTED 1
  11. /* Support arithmetic decoding when using 8-bit samples */
  12. #define D_ARITH_CODING_SUPPORTED 1
  13. /* Support in-memory source/destination managers */
  14. #define MEM_SRCDST_SUPPORTED 1
  15. /* Use accelerated SIMD routines when using 8-bit samples */
  16. #define WITH_SIMD 1
  17. /* This version of libjpeg-turbo supports run-time selection of data precision,
  18. * so BITS_IN_JSAMPLE is no longer used to specify the data precision at build
  19. * time. However, some downstream software expects the macro to be defined.
  20. * Since 12-bit data precision is an opt-in feature that requires explicitly
  21. * calling 12-bit-specific libjpeg API functions and using 12-bit-specific data
  22. * types, the unmodified portion of the libjpeg API still behaves as if it were
  23. * built for 8-bit precision, and JSAMPLE is still literally an 8-bit data
  24. * type. Thus, it is correct to define BITS_IN_JSAMPLE to 8 here.
  25. */
  26. #ifndef BITS_IN_JSAMPLE
  27. #define BITS_IN_JSAMPLE 8
  28. #endif
  29. #ifdef _WIN32
  30. #undef RIGHT_SHIFT_IS_UNSIGNED
  31. /* Define "boolean" as unsigned char, not int, per Windows custom */
  32. #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
  33. typedef unsigned char boolean;
  34. #endif
  35. #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
  36. /* Define "INT32" as int, not long, per Windows custom */
  37. #if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
  38. typedef short INT16;
  39. typedef signed int INT32;
  40. #endif
  41. #define XMD_H /* prevent jmorecfg.h from redefining it */
  42. #else
  43. /* Define if your (broken) compiler shifts signed values as if they were
  44. unsigned. */
  45. /* #undef RIGHT_SHIFT_IS_UNSIGNED */
  46. #endif