Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorSpaceMaths.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006 Cyrille Berger <cberger@cberger.bet
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#include <KoColorSpaceMaths.h>
8
9#include <cfloat>
10
11#include <QtGlobal>
12
13#ifdef HAVE_OPENEXR
17const half KoColorSpaceMathsTraits<half>::max = HALF_MAX;
18const half KoColorSpaceMathsTraits<half>::min = -HALF_MAX;
19const half KoColorSpaceMathsTraits<half>::epsilon = HALF_EPSILON;
21#endif
22
26const float KoColorSpaceMathsTraits<float>::max = FLT_MAX;
27const float KoColorSpaceMathsTraits<float>::min = -FLT_MAX;
28const float KoColorSpaceMathsTraits<float>::epsilon = FLT_EPSILON;
30
34const double KoColorSpaceMathsTraits<double>::max = DBL_MAX;
35const double KoColorSpaceMathsTraits<double>::min = -DBL_MAX;
36const double KoColorSpaceMathsTraits<double>::epsilon = DBL_EPSILON;
37
43
44const Ko::FullLut< KoIntegerToFloat<quint16>, float, quint16> KoLuts::Uint16ToFloat;
45const Ko::FullLut< KoIntegerToFloat<quint8>, float, quint8> KoLuts::Uint8ToFloat;
enumChannelValueType
enum to define the value of the channel
@ UINT8
use this for an unsigned integer 8bits channel
@ UINT16
use this for an integer 16bits channel
@ INT16
use this for an integer 16bits channel
@ FLOAT32
use this for a float 32bits channel
@ FLOAT16
use this for a float 16bits channel
@ UINT32
use this for an unsigned integer 21bits channel
@ FLOAT64
use this for a float 64bits channel
static KRITAPIGMENT_EXPORT const Ko::FullLut< KoIntegerToFloat< quint16 >, float, quint16 > Uint16ToFloat
static KRITAPIGMENT_EXPORT const Ko::FullLut< KoIntegerToFloat< quint8 >, float, quint8 > Uint8ToFloat