Instrument Neutral Distributed Interface INDI  2.0.2
gammalut16.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2020 by Pawel Soja <kernel32.pl@gmail.com>
3  Copyright (C) 2015 by Jasem Mutlaq <mutlaqja@ikarustech.com>
4  Copyright (C) 2014 by geehalel <geehalel@gmail.com>
5 
6  Stream Recorder
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Lesser General Public
10  License as published by the Free Software Foundation; either
11  version 2.1 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 
22 */
23 #pragma once
24 
25 #include <vector>
26 #include <cstdint>
27 #include <cstddef>
28 
30 {
31  public:
32  GammaLut16(double gamma = 2.4, double a = 12.92, double b = 0.055, double Ii = 0.00304);
33 
34  public:
35  void apply(const uint16_t *source, size_t count, uint8_t *destination) const;
36  void apply(const uint16_t *first, const uint16_t *last, uint8_t *destination) const;
37 
38  protected:
39  std::vector<uint8_t> mLookUpTable;
40 };
void apply(const uint16_t *source, size_t count, uint8_t *destination) const
Definition: gammalut16.cpp:43
GammaLut16(double gamma=2.4, double a=12.92, double b=0.055, double Ii=0.00304)
Definition: gammalut16.cpp:26
std::vector< uint8_t > mLookUpTable
Definition: gammalut16.h:39