#include <display_color_utils.h>
Definition at line 44 of file display_color_utils.h.
◆ ESPDEPRECATED()
| esphome::display::ColorUtil::ESPDEPRECATED |
( |
"Packed colors are always | RGB, |
|
|
drop the ColorOrder argument. Removed in 2027.5.0" | , |
|
|
"2026.11.0" | ) |
◆ read_packed()
| static ESPHOME_ALWAYS_INLINE uint32_t esphome::display::ColorUtil::read_packed |
( |
const uint8_t * | ptr, |
|
|
size_t | index, |
|
|
bool | big_endian ) |
|
inlinestatic |
Reads one packed pixel of the given bitness from a source buffer into the value to_color() takes.
BITNESS is a template argument so the byte layout folds; pass it on to to_color() as a constant too, and its channel scaling divides by a constant, which the compiler turns into a multiply and shift.
Definition at line 51 of file display_color_utils.h.
◆ to_color()
Unpacks a color of the given bitness, red in the most significant bits.
Definition at line 67 of file display_color_utils.h.
◆ color_bitness
◆ color_order
| ColorOrder esphome::display::ColorUtil::color_order |
The documentation for this class was generated from the following file: