ESPHome  2024.3.1
Public Member Functions | Protected Attributes
esphome::light::ESPColorCorrection Class Reference

#include <esp_color_correction.h>

Public Member Functions

 ESPColorCorrection ()
 
void set_max_brightness (const Color &max_brightness)
 
void set_local_brightness (uint8_t local_brightness)
 
void calculate_gamma_table (float gamma)
 
Color color_correct (Color color) const ALWAYS_INLINE
 
uint8_t color_correct_red (uint8_t red) const ALWAYS_INLINE
 
uint8_t color_correct_green (uint8_t green) const ALWAYS_INLINE
 
uint8_t color_correct_blue (uint8_t blue) const ALWAYS_INLINE
 
uint8_t color_correct_white (uint8_t white) const ALWAYS_INLINE
 
Color color_uncorrect (Color color) const ALWAYS_INLINE
 
uint8_t color_uncorrect_red (uint8_t red) const ALWAYS_INLINE
 
uint8_t color_uncorrect_green (uint8_t green) const ALWAYS_INLINE
 
uint8_t color_uncorrect_blue (uint8_t blue) const ALWAYS_INLINE
 
uint8_t color_uncorrect_white (uint8_t white) const ALWAYS_INLINE
 

Protected Attributes

uint8_t gamma_table_ [256]
 
uint8_t gamma_reverse_table_ [256]
 
Color max_brightness_
 
uint8_t local_brightness_ {255}
 

Detailed Description

Definition at line 8 of file esp_color_correction.h.

Constructor & Destructor Documentation

◆ ESPColorCorrection()

esphome::light::ESPColorCorrection::ESPColorCorrection ( )
inline

Definition at line 10 of file esp_color_correction.h.

Member Function Documentation

◆ calculate_gamma_table()

void esphome::light::ESPColorCorrection::calculate_gamma_table ( float  gamma)

Definition at line 8 of file esp_color_correction.cpp.

◆ color_correct()

Color esphome::light::ESPColorCorrection::color_correct ( Color  color) const
inline

Definition at line 14 of file esp_color_correction.h.

◆ color_correct_blue()

uint8_t esphome::light::ESPColorCorrection::color_correct_blue ( uint8_t  blue) const
inline

Definition at line 27 of file esp_color_correction.h.

◆ color_correct_green()

uint8_t esphome::light::ESPColorCorrection::color_correct_green ( uint8_t  green) const
inline

Definition at line 23 of file esp_color_correction.h.

◆ color_correct_red()

uint8_t esphome::light::ESPColorCorrection::color_correct_red ( uint8_t  red) const
inline

Definition at line 19 of file esp_color_correction.h.

◆ color_correct_white()

uint8_t esphome::light::ESPColorCorrection::color_correct_white ( uint8_t  white) const
inline

Definition at line 31 of file esp_color_correction.h.

◆ color_uncorrect()

Color esphome::light::ESPColorCorrection::color_uncorrect ( Color  color) const
inline

Definition at line 35 of file esp_color_correction.h.

◆ color_uncorrect_blue()

uint8_t esphome::light::ESPColorCorrection::color_uncorrect_blue ( uint8_t  blue) const
inline

Definition at line 54 of file esp_color_correction.h.

◆ color_uncorrect_green()

uint8_t esphome::light::ESPColorCorrection::color_uncorrect_green ( uint8_t  green) const
inline

Definition at line 47 of file esp_color_correction.h.

◆ color_uncorrect_red()

uint8_t esphome::light::ESPColorCorrection::color_uncorrect_red ( uint8_t  red) const
inline

Definition at line 40 of file esp_color_correction.h.

◆ color_uncorrect_white()

uint8_t esphome::light::ESPColorCorrection::color_uncorrect_white ( uint8_t  white) const
inline

Definition at line 61 of file esp_color_correction.h.

◆ set_local_brightness()

void esphome::light::ESPColorCorrection::set_local_brightness ( uint8_t  local_brightness)
inline

Definition at line 12 of file esp_color_correction.h.

◆ set_max_brightness()

void esphome::light::ESPColorCorrection::set_max_brightness ( const Color max_brightness)
inline

Definition at line 11 of file esp_color_correction.h.

Field Documentation

◆ gamma_reverse_table_

uint8_t esphome::light::ESPColorCorrection::gamma_reverse_table_[256]
protected

Definition at line 71 of file esp_color_correction.h.

◆ gamma_table_

uint8_t esphome::light::ESPColorCorrection::gamma_table_[256]
protected

Definition at line 70 of file esp_color_correction.h.

◆ local_brightness_

uint8_t esphome::light::ESPColorCorrection::local_brightness_ {255}
protected

Definition at line 73 of file esp_color_correction.h.

◆ max_brightness_

Color esphome::light::ESPColorCorrection::max_brightness_
protected

Definition at line 72 of file esp_color_correction.h.


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