• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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.1.4
26 
27 /* libjpeg-turbo version in integer form */
28 #define LIBJPEG_TURBO_VERSION_NUMBER  2001004
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 if your (broken) compiler shifts signed values as if they were
54    unsigned. */
55 /* #undef RIGHT_SHIFT_IS_UNSIGNED */
56 #endif