File indexing completed on 2024-05-12 15:59:36
0001 /* 0002 * SPDX-FileCopyrightText: 2006 Cyrille Berger <cberger@cberger.net> 0003 * SPDX-FileCopyrightText: 2017, 2020 L. E. Segovia <amy@amyspark.me> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.1-or-later 0006 */ 0007 0008 #include <KoLabColorSpaceMaths.h> 0009 0010 #include <cfloat> 0011 0012 #include <QtGlobal> 0013 0014 #ifdef HAVE_OPENEXR 0015 const half KoLabColorSpaceMathsTraits<half>::zeroValueL = 0.0; 0016 const half KoLabColorSpaceMathsTraits<half>::unitValueL = 100.0; 0017 const half KoLabColorSpaceMathsTraits<half>::halfValueL = 50.0; 0018 const half KoLabColorSpaceMathsTraits<half>::zeroValueAB = -128.0; 0019 const half KoLabColorSpaceMathsTraits<half>::unitValueAB = +127.0; 0020 const half KoLabColorSpaceMathsTraits<half>::halfValueAB = 0.0; 0021 #endif 0022 0023 const float KoLabColorSpaceMathsTraits<float>::zeroValueL = 0.0; 0024 const float KoLabColorSpaceMathsTraits<float>::unitValueL = 100.0; 0025 const float KoLabColorSpaceMathsTraits<float>::halfValueL = 50.0; 0026 const float KoLabColorSpaceMathsTraits<float>::zeroValueAB = -128.0; 0027 const float KoLabColorSpaceMathsTraits<float>::unitValueAB = +127.0; 0028 const float KoLabColorSpaceMathsTraits<float>::halfValueAB = 0.0; 0029 0030 const double KoLabColorSpaceMathsTraits<double>::zeroValueL = 0.0; 0031 const double KoLabColorSpaceMathsTraits<double>::unitValueL = 100.0; 0032 const double KoLabColorSpaceMathsTraits<double>::halfValueL = 50.0; 0033 const double KoLabColorSpaceMathsTraits<double>::zeroValueAB = -128.0; 0034 const double KoLabColorSpaceMathsTraits<double>::unitValueAB = +127.0; 0035 const double KoLabColorSpaceMathsTraits<double>::halfValueAB = 0.0;