mirror of
https://github.com/opencv/opencv.git
synced 2024-12-28 11:58:13 +08:00
d97df262f6
Libjpeg-turbo update to version 3.0.3 #25623 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
61 lines
2.1 KiB
C
61 lines
2.1 KiB
C
/* Version ID for the JPEG library.
|
|
* Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
|
|
*/
|
|
#define JPEG_LIB_VERSION @JPEG_LIB_VERSION@
|
|
|
|
/* libjpeg-turbo version */
|
|
#define LIBJPEG_TURBO_VERSION @VERSION@
|
|
|
|
/* libjpeg-turbo version in integer form */
|
|
#define LIBJPEG_TURBO_VERSION_NUMBER @LIBJPEG_TURBO_VERSION_NUMBER@
|
|
|
|
/* Support arithmetic encoding when using 8-bit samples */
|
|
#cmakedefine C_ARITH_CODING_SUPPORTED 1
|
|
|
|
/* Support arithmetic decoding when using 8-bit samples */
|
|
#cmakedefine D_ARITH_CODING_SUPPORTED 1
|
|
|
|
/* Support in-memory source/destination managers */
|
|
#define MEM_SRCDST_SUPPORTED 1
|
|
|
|
/* Use accelerated SIMD routines when using 8-bit samples */
|
|
#cmakedefine WITH_SIMD 1
|
|
|
|
/* This version of libjpeg-turbo supports run-time selection of data precision,
|
|
* so BITS_IN_JSAMPLE is no longer used to specify the data precision at build
|
|
* time. However, some downstream software expects the macro to be defined.
|
|
* Since 12-bit data precision is an opt-in feature that requires explicitly
|
|
* calling 12-bit-specific libjpeg API functions and using 12-bit-specific data
|
|
* types, the unmodified portion of the libjpeg API still behaves as if it were
|
|
* built for 8-bit precision, and JSAMPLE is still literally an 8-bit data
|
|
* type. Thus, it is correct to define BITS_IN_JSAMPLE to 8 here.
|
|
*/
|
|
#ifndef BITS_IN_JSAMPLE
|
|
#define BITS_IN_JSAMPLE 8
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
|
|
#undef RIGHT_SHIFT_IS_UNSIGNED
|
|
|
|
/* Define "boolean" as unsigned char, not int, per Windows custom */
|
|
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
|
|
typedef unsigned char boolean;
|
|
#endif
|
|
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
|
|
|
|
/* Define "INT32" as int, not long, per Windows custom */
|
|
#if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
|
|
typedef short INT16;
|
|
typedef signed int INT32;
|
|
#endif
|
|
#define XMD_H /* prevent jmorecfg.h from redefining it */
|
|
|
|
#else
|
|
|
|
/* Define if your (broken) compiler shifts signed values as if they were
|
|
unsigned. */
|
|
#cmakedefine RIGHT_SHIFT_IS_UNSIGNED 1
|
|
|
|
#endif
|