| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | /* | ||
| 3 | * This file is part of the Falcon Player (FPP) and is Copyright (C) | ||
| 4 | * 2013-2022 by the Falcon Player Developers. | ||
| 5 | * | ||
| 6 | * The Falcon Player (FPP) is free software, and is covered under | ||
| 7 | * multiple Open Source licenses. Please see the included 'LICENSES' | ||
| 8 | * file for descriptions of what files are covered by each license. | ||
| 9 | * | ||
| 10 | * This source file is covered under the LGPL v2.1 as described in the | ||
| 11 | * included LICENSE.LGPL file. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #include "OutputProcessor.h" | ||
| 15 | #include "fpp-json-fwd.h" | ||
| 16 | |||
| 17 | class BrightnessOutputProcessor : public OutputProcessor { | ||
| 18 | public: | ||
| 19 | BrightnessOutputProcessor(const Json::Value& config); | ||
| 20 | virtual ~BrightnessOutputProcessor(); | ||
| 21 | |||
| 22 | virtual void ProcessData(unsigned char* channelData) const override; | ||
| 23 | |||
| 24 | ✗ | virtual OutputProcessorType getType() const override { return BRIGHTNESS; } | |
| 25 | |||
| 26 | 102 | virtual void GetRequiredChannelRanges(const std::function<void(int, int)>& addRange) override { | |
| 27 | 102 | addRange(start, start + count - 1); | |
| 28 | 102 | } | |
| 29 | |||
| 30 | protected: | ||
| 31 | int start; | ||
| 32 | int count; | ||
| 33 | int brightness; | ||
| 34 | float gamma; | ||
| 35 | std::string model; | ||
| 36 | unsigned char table[256]; | ||
| 37 | }; | ||
| 38 |