Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
NeoGammaInvertMethod.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
NeoGammaInvertMethod class is used to correct RGB colors for human eye gamma levels equally
3
across all color channels
4
5
Written by Michael C. Miller.
6
7
I invest time and resources providing this open source code,
8
please support me by dontating (see https://github.com/Makuna)
9
10
-------------------------------------------------------------------------
11
This file is part of the LUMITRONIX_iFlex_Workshop library.
12
13
LumitronixIFlexBus is free software: you can redistribute it and/or modify
14
it under the terms of the GNU Lesser General Public License as
15
published by the Free Software Foundation, either version 3 of
16
the License, or (at your option) any later version.
17
18
LumitronixIFlexBus is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU Lesser General Public License for more details.
22
23
You should have received a copy of the GNU Lesser General Public
24
License along with LumitronixIFlex. If not, see
25
<http://www.gnu.org/licenses/>.
26
-------------------------------------------------------------------------*/
27
#pragma once
28
29
// use one of the gamma method classes as a base converter for this template class
30
// T_METHOD -
31
// NeoGammaEquationMethod
32
// NeoGammaCieLabEquationMethod
33
// NeoGammaTableMethod
34
// NeoGammaNullMethod
35
//
36
template
<
typename
T_METHOD>
class
NeoGammaInvertMethod
37
{
38
public
:
39
static
uint8_t
Correct
(uint8_t value)
40
{
41
return
~T_METHOD
::Correct
(value);
42
}
43
44
static
uint16_t
Correct
(uint16_t value)
45
{
46
return
~T_METHOD
::Correct
(value);
47
}
48
};
NeoGammaInvertMethod
Definition:
NeoGammaInvertMethod.h:37
NeoGammaInvertMethod::Correct
static uint8_t Correct(uint8_t value)
Definition:
NeoGammaInvertMethod.h:39
NeoGammaInvertMethod::Correct
static uint16_t Correct(uint16_t value)
Definition:
NeoGammaInvertMethod.h:44
src
internal
colors
NeoGammaInvertMethod.h
Generated by
1.9.1