13b921b29Sopenharmony_ci/*
23b921b29Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
33b921b29Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
43b921b29Sopenharmony_ci * you may not use this file except in compliance with the License.
53b921b29Sopenharmony_ci * You may obtain a copy of the License at
63b921b29Sopenharmony_ci *
73b921b29Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
83b921b29Sopenharmony_ci *
93b921b29Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
103b921b29Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
113b921b29Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123b921b29Sopenharmony_ci * See the License for the specific language governing permissions and
133b921b29Sopenharmony_ci * limitations under the License.
143b921b29Sopenharmony_ci */
153b921b29Sopenharmony_ci
163b921b29Sopenharmony_ci#ifndef THIRD_PARTY_LIBJPEG_TURBO_JCONFIG_H
173b921b29Sopenharmony_ci#define THIRD_PARTY_LIBJPEG_TURBO_JCONFIG_H
183b921b29Sopenharmony_ci
193b921b29Sopenharmony_ci/* Version ID for the JPEG library.
203b921b29Sopenharmony_ci * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
213b921b29Sopenharmony_ci */
223b921b29Sopenharmony_ci#define JPEG_LIB_VERSION  62
233b921b29Sopenharmony_ci
243b921b29Sopenharmony_ci/* libjpeg-turbo version */
253b921b29Sopenharmony_ci#define LIBJPEG_TURBO_VERSION  2.1.4
263b921b29Sopenharmony_ci
273b921b29Sopenharmony_ci/* libjpeg-turbo version in integer form */
283b921b29Sopenharmony_ci#define LIBJPEG_TURBO_VERSION_NUMBER  2001004
293b921b29Sopenharmony_ci
303b921b29Sopenharmony_ci/* Support arithmetic encoding */
313b921b29Sopenharmony_ci/* #undef C_ARITH_CODING_SUPPORTED */
323b921b29Sopenharmony_ci
333b921b29Sopenharmony_ci/* Support arithmetic decoding */
343b921b29Sopenharmony_ci/* #undef D_ARITH_CODING_SUPPORTED */
353b921b29Sopenharmony_ci
363b921b29Sopenharmony_ci/* Support in-memory source/destination managers */
373b921b29Sopenharmony_ci#define MEM_SRCDST_SUPPORTED 1
383b921b29Sopenharmony_ci
393b921b29Sopenharmony_ci/* Use accelerated SIMD routines. */
403b921b29Sopenharmony_ci#define WITH_SIMD 1
413b921b29Sopenharmony_ci
423b921b29Sopenharmony_ci/*
433b921b29Sopenharmony_ci * Define BITS_IN_JSAMPLE as either
443b921b29Sopenharmony_ci *   8   for 8-bit sample values (the usual setting)
453b921b29Sopenharmony_ci *   12  for 12-bit sample values
463b921b29Sopenharmony_ci * Only 8 and 12 are legal data precisions for lossy JPEG according to the
473b921b29Sopenharmony_ci * JPEG standard, and the IJG code does not support anything else!
483b921b29Sopenharmony_ci * We do not support run-time selection of data precision, sorry.
493b921b29Sopenharmony_ci */
503b921b29Sopenharmony_ci
513b921b29Sopenharmony_ci#define BITS_IN_JSAMPLE  8      /* use 8 or 12 */
523b921b29Sopenharmony_ci
533b921b29Sopenharmony_ci/* Define if your (broken) compiler shifts signed values as if they were
543b921b29Sopenharmony_ci   unsigned. */
553b921b29Sopenharmony_ci/* #undef RIGHT_SHIFT_IS_UNSIGNED */
563b921b29Sopenharmony_ci#endif