color_to_mono() of an RGB565 value as ColorUtil::to_color() reads it, from table lookups instead of a division per channel.
More...
#include <display_color_utils.h>
|
| void | fill_tables_ (uint16_t high, uint16_t middle, uint16_t low) |
| |
|
| std::array< uint16_t, 32 > | high_ {} |
| |
| std::array< uint16_t, 64 > | middle_ {} |
| |
| std::array< uint16_t, 32 > | low_ {} |
| |
color_to_mono() of an RGB565 value as ColorUtil::to_color() reads it, from table lookups instead of a division per channel.
Definition at line 221 of file display_color_utils.h.
◆ Rgb565ToMono()
| esphome::display::Rgb565ToMono::Rgb565ToMono |
( |
| ) |
|
|
inline |
◆ ESPDEPRECATED()
| esphome::display::Rgb565ToMono::ESPDEPRECATED |
( |
"Packed colors are always | RGB, |
|
|
drop the ColorOrder argument. Removed in 2027.5.0" | , |
|
|
"2026.11.0" | ) |
|
inline |
◆ fill_tables_()
| void esphome::display::Rgb565ToMono::fill_tables_ |
( |
uint16_t | high, |
|
|
uint16_t | middle, |
|
|
uint16_t | low ) |
|
inlineprotected |
◆ operator()()
| uint8_t esphome::display::Rgb565ToMono::operator() |
( |
uint16_t | value | ) |
const |
|
inline |
◆ high_
| std::array<uint16_t, 32> esphome::display::Rgb565ToMono::high_ {} |
|
protected |
◆ low_
| std::array<uint16_t, 32> esphome::display::Rgb565ToMono::low_ {} |
|
protected |
◆ middle_
| std::array<uint16_t, 64> esphome::display::Rgb565ToMono::middle_ {} |
|
protected |
The documentation for this class was generated from the following file: