hyperion.ng
Public Member Functions | List of all members
RgbChannelAdjustment Class Reference

Correction for a single color byte value All configuration values are unsigned int and assume the color value to be between 0 and 255. More...

#include <RgbChannelAdjustment.h>

Public Member Functions

 RgbChannelAdjustment (QString channelName="")
 Default constructor.
 
 RgbChannelAdjustment (uint8_t adjustR, uint8_t adjustG, uint8_t adjustB, QString channelName="")
 Constructor. More...
 
 ~RgbChannelAdjustment ()
 Destructor.
 
void apply (uint8_t input, uint8_t brightness, uint8_t &red, uint8_t &green, uint8_t &blue)
 Transform the given array value. More...
 
void setAdjustment (uint8_t adjustR, uint8_t adjustG, uint8_t adjustB)
 setAdjustment RGB More...
 
uint8_t getAdjustmentR () const
 
uint8_t getAdjustmentG () const
 
uint8_t getAdjustmentB () const
 

Detailed Description

Correction for a single color byte value All configuration values are unsigned int and assume the color value to be between 0 and 255.

Constructor & Destructor Documentation

§ RgbChannelAdjustment()

RgbChannelAdjustment::RgbChannelAdjustment ( uint8_t  adjustR,
uint8_t  adjustG,
uint8_t  adjustB,
QString  channelName = "" 
)

Constructor.

Parameters
adjustR
adjustG
adjustB

Member Function Documentation

§ apply()

void RgbChannelAdjustment::apply ( uint8_t  input,
uint8_t  brightness,
uint8_t &  red,
uint8_t &  green,
uint8_t &  blue 
)

Transform the given array value.

Parameters
inputThe input color bytes
brightnessThe current brightness value
redThe red color component
greenThe green color component
blueThe blue color component
Note
The values are updated in place.

§ getAdjustmentB()

uint8_t RgbChannelAdjustment::getAdjustmentB ( ) const
Returns
The current adjustB value

§ getAdjustmentG()

uint8_t RgbChannelAdjustment::getAdjustmentG ( ) const
Returns
The current adjustG value

§ getAdjustmentR()

uint8_t RgbChannelAdjustment::getAdjustmentR ( ) const
Returns
The current adjustR value

§ setAdjustment()

void RgbChannelAdjustment::setAdjustment ( uint8_t  adjustR,
uint8_t  adjustG,
uint8_t  adjustB 
)

setAdjustment RGB

Parameters
adjustR
adjustG
adjustB

The documentation for this class was generated from the following files: