ESPHome 2026.2.4
Loading...
Searching...
No Matches
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 ESPHOME_ALWAYS_INLINE
 
uint8_t color_correct_red (uint8_t red) const ESPHOME_ALWAYS_INLINE
 
uint8_t color_correct_green (uint8_t green) const ESPHOME_ALWAYS_INLINE
 
uint8_t color_correct_blue (uint8_t blue) const ESPHOME_ALWAYS_INLINE
 
uint8_t color_correct_white (uint8_t white) const ESPHOME_ALWAYS_INLINE
 
Color color_uncorrect (Color color) const ESPHOME_ALWAYS_INLINE
 
uint8_t color_uncorrect_red (uint8_t red) const ESPHOME_ALWAYS_INLINE
 
uint8_t color_uncorrect_green (uint8_t green) const ESPHOME_ALWAYS_INLINE
 
uint8_t color_uncorrect_blue (uint8_t blue) const ESPHOME_ALWAYS_INLINE
 
uint8_t color_uncorrect_white (uint8_t white) const ESPHOME_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 7 of file esp_color_correction.h.

Constructor & Destructor Documentation

◆ ESPColorCorrection()

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

Definition at line 9 of file esp_color_correction.h.

Member Function Documentation

◆ calculate_gamma_table()

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

Definition at line 7 of file esp_color_correction.cpp.

◆ color_correct()

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

Definition at line 13 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 26 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 22 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 18 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 30 of file esp_color_correction.h.

◆ color_uncorrect()

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

Definition at line 34 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 53 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 46 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 39 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 60 of file esp_color_correction.h.

◆ set_local_brightness()

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

Definition at line 11 of file esp_color_correction.h.

◆ set_max_brightness()

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

Definition at line 10 of file esp_color_correction.h.

Field Documentation

◆ gamma_reverse_table_

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

Definition at line 70 of file esp_color_correction.h.

◆ gamma_table_

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

Definition at line 69 of file esp_color_correction.h.

◆ local_brightness_

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

Definition at line 72 of file esp_color_correction.h.

◆ max_brightness_

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

Definition at line 71 of file esp_color_correction.h.


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