#include <esp_color_correction.h>
|
| uint8_t | gamma_correct_ (uint8_t value) const |
| | Forward gamma: read uint16 PROGMEM table, convert to uint8.
|
| |
| uint8_t | gamma_uncorrect_ (uint8_t value) const |
| | Reverse gamma: binary search the forward PROGMEM table.
|
| |
| uint8_t | color_uncorrect_channel_ (uint8_t value, uint8_t max_brightness) const |
| | Shared body of color_uncorrect_{red,green,blue,white}.
|
| |
Definition at line 23 of file esp_color_correction.h.
◆ color_correct()
| Color esphome::light::ESPColorCorrection::color_correct |
( |
Color | color | ) |
const |
|
inline |
◆ color_correct_blue()
| uint8_t esphome::light::ESPColorCorrection::color_correct_blue |
( |
uint8_t | blue | ) |
const |
|
inline |
◆ color_correct_green()
| uint8_t esphome::light::ESPColorCorrection::color_correct_green |
( |
uint8_t | green | ) |
const |
|
inline |
◆ color_correct_red()
| uint8_t esphome::light::ESPColorCorrection::color_correct_red |
( |
uint8_t | red | ) |
const |
|
inline |
◆ color_correct_white()
| uint8_t esphome::light::ESPColorCorrection::color_correct_white |
( |
uint8_t | white | ) |
const |
|
inline |
◆ color_uncorrect()
| Color esphome::light::ESPColorCorrection::color_uncorrect |
( |
Color | color | ) |
const |
◆ color_uncorrect_blue()
| uint8_t esphome::light::ESPColorCorrection::color_uncorrect_blue |
( |
uint8_t | blue | ) |
const |
|
inline |
◆ color_uncorrect_channel_()
| uint8_t esphome::light::ESPColorCorrection::color_uncorrect_channel_ |
( |
uint8_t | value, |
|
|
uint8_t | max_brightness ) const |
|
protected |
Shared body of color_uncorrect_{red,green,blue,white}.
Kept out-of-line to avoid duplicating two 16-bit divides at every call site.
Definition at line 31 of file esp_color_correction.cpp.
◆ color_uncorrect_green()
| uint8_t esphome::light::ESPColorCorrection::color_uncorrect_green |
( |
uint8_t | green | ) |
const |
|
inline |
◆ color_uncorrect_red()
| uint8_t esphome::light::ESPColorCorrection::color_uncorrect_red |
( |
uint8_t | red | ) |
const |
|
inline |
◆ color_uncorrect_white()
| uint8_t esphome::light::ESPColorCorrection::color_uncorrect_white |
( |
uint8_t | white | ) |
const |
|
inline |
◆ gamma_correct_()
| uint8_t esphome::light::ESPColorCorrection::gamma_correct_ |
( |
uint8_t | value | ) |
const |
|
protected |
◆ gamma_uncorrect_()
| uint8_t esphome::light::ESPColorCorrection::gamma_uncorrect_ |
( |
uint8_t | value | ) |
const |
|
protected |
◆ set_gamma_table()
| void esphome::light::ESPColorCorrection::set_gamma_table |
( |
const uint16_t * | table | ) |
|
|
inline |
◆ set_local_brightness()
| void esphome::light::ESPColorCorrection::set_local_brightness |
( |
uint8_t | local_brightness | ) |
|
|
inline |
◆ set_max_brightness()
| void esphome::light::ESPColorCorrection::set_max_brightness |
( |
const Color & | max_brightness | ) |
|
|
inline |
◆ gamma_table_
| const uint16_t* esphome::light::ESPColorCorrection::gamma_table_ {nullptr} |
|
protected |
◆ local_brightness_
| uint8_t esphome::light::ESPColorCorrection::local_brightness_ {255} |
|
protected |
◆ max_brightness_
| Color esphome::light::ESPColorCorrection::max_brightness_ {255, 255, 255, 255} |
|
protected |
The documentation for this class was generated from the following files: