1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef THIRD_PARTY_LIBJPEG_TURBO_JCONFIG_H 17 #define THIRD_PARTY_LIBJPEG_TURBO_JCONFIG_H 18 19 /* Version ID for the JPEG library. 20 * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". 21 */ 22 #define JPEG_LIB_VERSION 62 23 24 /* libjpeg-turbo version */ 25 #define LIBJPEG_TURBO_VERSION 2.0.5 26 27 /* libjpeg-turbo version in integer form */ 28 #define LIBJPEG_TURBO_VERSION_NUMBER 2000005 29 30 /* Support arithmetic encoding */ 31 /* #undef C_ARITH_CODING_SUPPORTED */ 32 33 /* Support arithmetic decoding */ 34 /* #undef D_ARITH_CODING_SUPPORTED */ 35 36 /* Support in-memory source/destination managers */ 37 #define MEM_SRCDST_SUPPORTED 1 38 39 /* Use accelerated SIMD routines. */ 40 #define WITH_SIMD 1 41 42 /* 43 * Define BITS_IN_JSAMPLE as either 44 * 8 for 8-bit sample values (the usual setting) 45 * 12 for 12-bit sample values 46 * Only 8 and 12 are legal data precisions for lossy JPEG according to the 47 * JPEG standard, and the IJG code does not support anything else! 48 * We do not support run-time selection of data precision, sorry. 49 */ 50 51 #define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ 52 53 /* Define to 1 if you have the <locale.h> header file. */ 54 #define HAVE_LOCALE_H 1 55 56 /* Define to 1 if you have the <stddef.h> header file. */ 57 #define HAVE_STDDEF_H 1 58 59 /* Define to 1 if you have the <stdlib.h> header file. */ 60 #define HAVE_STDLIB_H 1 61 62 /* Define if you need to include <sys/types.h> to get size_t. */ 63 #define NEED_SYS_TYPES_H 1 64 65 /* Define if you have BSD-like bzero and bcopy in <strings.h> rather than 66 memset/memcpy in <string.h>. */ 67 /* #undef NEED_BSD_STRINGS */ 68 69 /* Define to 1 if the system has the type `unsigned char'. */ 70 #define HAVE_UNSIGNED_CHAR 1 71 72 /* Define to 1 if the system has the type `unsigned short'. */ 73 #define HAVE_UNSIGNED_SHORT 1 74 75 /* Compiler does not support pointers to undefined structures. */ 76 /* #undef INCOMPLETE_TYPES_BROKEN */ 77 78 /* Define if your (broken) compiler shifts signed values as if they were 79 unsigned. */ 80 /* #undef RIGHT_SHIFT_IS_UNSIGNED */ 81 82 /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 83 #ifndef __CHAR_UNSIGNED__ 84 /* #undef __CHAR_UNSIGNED__ */ 85 #endif 86 87 /* Define to empty if `const' does not conform to ANSI C. */ 88 /* #undef const */ 89 90 /* Define to `unsigned int' if <sys/types.h> does not define. */ 91 /* #undef size_t */ 92 #endif