Krita Source Code Documentation
Loading...
Searching...
No Matches
KoLabColorSpaceMaths.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006 Cyrille Berger <cberger@cberger.net>
3
* SPDX-FileCopyrightText: 2017, 2020 L. E. Segovia <amy@amyspark.me>
4
*
5
* SPDX-License-Identifier: LGPL-2.1-or-later
6
*/
7
8
#include <
KoLabColorSpaceMaths.h
>
9
10
#include <cfloat>
11
12
#include <QtGlobal>
13
14
#ifdef HAVE_OPENEXR
15
const
half
KoLabColorSpaceMathsTraits<half>::zeroValueL
= 0.0;
16
const
half
KoLabColorSpaceMathsTraits<half>::unitValueL
= 100.0;
17
const
half
KoLabColorSpaceMathsTraits<half>::halfValueL
= 50.0;
18
const
half
KoLabColorSpaceMathsTraits<half>::zeroValueAB
= -128.0;
19
const
half
KoLabColorSpaceMathsTraits<half>::unitValueAB
= +127.0;
20
const
half
KoLabColorSpaceMathsTraits<half>::halfValueAB
= 0.0;
21
#endif
22
23
const
float
KoLabColorSpaceMathsTraits<float>::zeroValueL
= 0.0;
24
const
float
KoLabColorSpaceMathsTraits<float>::unitValueL
= 100.0;
25
const
float
KoLabColorSpaceMathsTraits<float>::halfValueL
= 50.0;
26
const
float
KoLabColorSpaceMathsTraits<float>::zeroValueAB
= -128.0;
27
const
float
KoLabColorSpaceMathsTraits<float>::unitValueAB
= +127.0;
28
const
float
KoLabColorSpaceMathsTraits<float>::halfValueAB
= 0.0;
29
30
const
double
KoLabColorSpaceMathsTraits<double>::zeroValueL
= 0.0;
31
const
double
KoLabColorSpaceMathsTraits<double>::unitValueL
= 100.0;
32
const
double
KoLabColorSpaceMathsTraits<double>::halfValueL
= 50.0;
33
const
double
KoLabColorSpaceMathsTraits<double>::zeroValueAB
= -128.0;
34
const
double
KoLabColorSpaceMathsTraits<double>::unitValueAB
= +127.0;
35
const
double
KoLabColorSpaceMathsTraits<double>::halfValueAB
= 0.0;
KoLabColorSpaceMaths.h
KoLabColorSpaceMathsTraits
Definition
KoLabColorSpaceMaths.h:44
libs
pigment
KoLabColorSpaceMaths.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52