Image decoder specialization for QOI images.
More...
#include <qoi_decoder.h>
Image decoder specialization for QOI images.
Definition at line 16 of file qoi_decoder.h.
◆ QoiDecoder()
| esphome::runtime_image::QoiDecoder::QoiDecoder |
( |
RuntimeImage * | image | ) |
|
|
inline |
Construct a new QOI decoder object.
- Parameters
-
Definition at line 23 of file qoi_decoder.h.
◆ decode()
| int HOT esphome::runtime_image::QoiDecoder::decode |
( |
uint8_t * | buffer, |
|
|
size_t | size ) |
|
overridevirtual |
QOI Header definition, for reference: char magic[4]; // magic bytes "qoif" uint32_t width; // image width in pixels (BE) uint32_t height; // image height in pixels (BE) uint8_t channels; // 3 = RGB, 4 = RGBA uint8_t colorspace; // 0 = sRGB with linear alpha, 1 = all channels linear
Implements esphome::runtime_image::ImageDecoder.
Definition at line 51 of file qoi_decoder.cpp.
◆ is_finished()
| bool esphome::runtime_image::QoiDecoder::is_finished |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ reset()
| void esphome::runtime_image::QoiDecoder::reset |
( |
| ) |
|
|
overridevirtual |
◆ bits_per_pixel_
| uint16_t esphome::runtime_image::QoiDecoder::bits_per_pixel_ {0} |
|
protected |
◆ color_table_
| std::unique_ptr<Color[]> esphome::runtime_image::QoiDecoder::color_table_ |
|
protected |
◆ current_index_
| size_t esphome::runtime_image::QoiDecoder::current_index_ {0} |
|
protected |
◆ height_
| size_t esphome::runtime_image::QoiDecoder::height_ {0} |
|
protected |
◆ last_pixel_
| Color esphome::runtime_image::QoiDecoder::last_pixel_ {0, 0, 0, 255} |
|
protected |
◆ paint_index_
| size_t esphome::runtime_image::QoiDecoder::paint_index_ {0} |
|
protected |
◆ width_
| size_t esphome::runtime_image::QoiDecoder::width_ {0} |
|
protected |
The documentation for this class was generated from the following files: