diff options
author | robot-piglet <[email protected]> | 2025-06-15 15:44:41 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-06-15 15:55:30 +0300 |
commit | ea626d7b15346c0da649291483f80f1ae6e1d7e7 (patch) | |
tree | 24ae3c2aa7f259f3ba95af8450b5bce9a4bdb10d /contrib/libs/libjpeg-turbo/jconfigint-linux.h | |
parent | 726087f32fb38c191ff0c3ef8c6646aa940d987e (diff) |
Intermediate changes
commit_hash:79edafb911368bba0a4d2f7f151a6c8a37c349f3
Diffstat (limited to 'contrib/libs/libjpeg-turbo/jconfigint-linux.h')
-rw-r--r-- | contrib/libs/libjpeg-turbo/jconfigint-linux.h | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/contrib/libs/libjpeg-turbo/jconfigint-linux.h b/contrib/libs/libjpeg-turbo/jconfigint-linux.h index 5dfd5568503..ea44899ba52 100644 --- a/contrib/libs/libjpeg-turbo/jconfigint-linux.h +++ b/contrib/libs/libjpeg-turbo/jconfigint-linux.h @@ -1,6 +1,9 @@ /* libjpeg-turbo build number */ #define BUILD "19800101" +/* How to hide global symbols. */ +#define HIDDEN __attribute__((visibility("hidden"))) + /* Compiler's inline keyword */ #undef inline @@ -14,7 +17,7 @@ #define PACKAGE_NAME "libjpeg-turbo" /* Version number of package */ -#define VERSION "2.1.4" +#define VERSION "3.1.1" /* The size of `size_t', as computed by sizeof. */ #define SIZEOF_SIZE_T 8 @@ -42,3 +45,32 @@ #else #define FALLTHROUGH #endif + +/* + * Define BITS_IN_JSAMPLE as either + * 8 for 8-bit sample values (the usual setting) + * 12 for 12-bit sample values + * Only 8 and 12 are legal data precisions for lossy JPEG according to the + * JPEG standard, and the IJG code does not support anything else! + */ + +#ifndef BITS_IN_JSAMPLE +#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ +#endif + +#undef C_ARITH_CODING_SUPPORTED +#undef D_ARITH_CODING_SUPPORTED +#undef WITH_SIMD + +#if BITS_IN_JSAMPLE == 8 + +/* Support arithmetic encoding */ +#define C_ARITH_CODING_SUPPORTED 1 + +/* Support arithmetic decoding */ +#define D_ARITH_CODING_SUPPORTED 1 + +/* Use accelerated SIMD routines. */ +#define WITH_SIMD 1 + +#endif |