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  GammaCurves(GammaCurves const& other) = default;
37  GammaCurves(GammaCurves&& other) = default;
38 
39  GammaCurves(GammaCurve const& red,
40  GammaCurve const& green,
41  GammaCurve const& blue);
42 
43  GammaCurves& operator=(GammaCurves const& other) = default;
44  GammaCurves& operator=(GammaCurves&& other) = default;
45 
46  GammaCurve red;
47  GammaCurve green;
48  GammaCurve blue;
49 };
50 
52 {
53 public:
54  explicit LinearGammaLUTs(int size);
55 };
56 
57 }
58 }
59 
60 #endif
Definition: as_render_target.h:27
std::vector< uint16_t > GammaCurve
Definition: gamma_curves.h:30
GammaCurve red
Definition: gamma_curves.h:46
GammaCurves & operator=(GammaCurves const &other)=default
GammaCurve blue
Definition: gamma_curves.h:48
Definition: gamma_curves.h:32
Definition: gamma_curves.h:51
GammaCurve green
Definition: gamma_curves.h:47

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017