mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
clean color adjustment (#428)
This commit is contained in:
@@ -21,6 +21,10 @@ public:
|
||||
|
||||
/// Destructor
|
||||
~RgbChannelAdjustment();
|
||||
|
||||
/// Transform the given array value
|
||||
/// @param input The input color bytes
|
||||
void apply(uint8_t input, uint8_t & red, uint8_t & green, uint8_t & blue);
|
||||
|
||||
/// setAdjustment RGB
|
||||
/// @param adjustR
|
||||
@@ -31,29 +35,12 @@ public:
|
||||
/// @return The current adjustR value
|
||||
uint8_t getAdjustmentR() const;
|
||||
|
||||
/// @param threshold New adjustR value
|
||||
void setAdjustmentR(uint8_t adjustR);
|
||||
|
||||
/// @return The current adjustG value
|
||||
uint8_t getAdjustmentG() const;
|
||||
|
||||
/// @param gamma New adjustG value
|
||||
void setAdjustmentG(uint8_t adjustG);
|
||||
|
||||
/// @return The current adjustB value
|
||||
uint8_t getAdjustmentB() const;
|
||||
|
||||
/// @param blacklevel New adjustB value
|
||||
void setAdjustmentB(uint8_t adjustB);
|
||||
|
||||
/// Transform the given array value
|
||||
/// @param input The input color bytes
|
||||
/// @return The corrected byte value
|
||||
uint8_t getAdjustmentR(uint8_t inputR) const;
|
||||
uint8_t getAdjustmentG(uint8_t inputG) const;
|
||||
uint8_t getAdjustmentB(uint8_t inputB) const;
|
||||
|
||||
|
||||
private:
|
||||
/// color channels
|
||||
enum ColorChannel { RED=0,GREEN=1, BLUE=2 };
|
||||
|
Reference in New Issue
Block a user