Mir
gamma_curves.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Brandon Schaefer <brandon.schaefer@canonical.com>
17  */
18 
19 #ifndef MIR_GRAPHICS_GAMMA_CURVES_H_
20 #define MIR_GRAPHICS_GAMMA_CURVES_H_
21 
22 #include <cstdint>
23 #include <vector>
24 
25 namespace mir
26 {
27 namespace graphics
28 {
29 
30 typedef std::vector<uint16_t> GammaCurve;
31 
33 {
34 public:
35  GammaCurves() = default;
36 
37  GammaCurves(GammaCurve const& red,
38  GammaCurve const& green,
39  GammaCurve const& blue);
40 
41  GammaCurve red;
42  GammaCurve green;
43  GammaCurve blue;
44 };
45 
46 }
47 }
48 
49 #endif
Definition: as_render_target.h:27
std::vector< uint16_t > GammaCurve
Definition: gamma_curves.h:30
GammaCurve red
Definition: gamma_curves.h:41
GammaCurve blue
Definition: gamma_curves.h:43
Definition: gamma_curves.h:32
GammaCurve green
Definition: gamma_curves.h:42

Copyright © 2012-2016 Canonical Ltd.
Generated on Sat Dec 3 12:48:59 UTC 2016