|
ESPHome 2026.8.0-dev
|
Image decoder specialization for PNG images. More...
#include <png_decoder.h>
Public Member Functions | |
| PngDecoder (RuntimeImage *image) | |
| Construct a new PNG Decoder object. | |
| ~PngDecoder () override | |
| int | prepare (size_t expected_size) override |
| int HOT | decode (uint8_t *buffer, size_t size) override |
| void | increment_pixels_decoded (uint32_t count) |
| uint32_t | get_pixels_decoded () const |
Public Member Functions inherited from esphome::runtime_image::ImageDecoder | |
| ImageDecoder (RuntimeImage *image) | |
| Construct a new Image Decoder object. | |
| virtual | ~ImageDecoder ()=default |
| bool | set_size (int width, int height) |
| Request the image to be resized once the actual dimensions are known. | |
| void | draw (int x, int y, int w, int h, const Color &color) |
| Fill a rectangle on the display_buffer using the defined color. | |
| virtual bool | is_finished () const |
| Check if the decoder has finished processing. | |
Protected Attributes | |
| pngle_t * | pngle_ {nullptr} |
| uint32_t | pixels_decoded_ {0} |
Protected Attributes inherited from esphome::runtime_image::ImageDecoder | |
| RuntimeImage * | image_ |
| size_t | expected_size_ = 0 |
| size_t | decoded_bytes_ = 0 |
| double | x_scale_ = 1.0 |
| double | y_scale_ = 1.0 |
| bool | size_valid_ = true |
Image decoder specialization for PNG images.
Definition at line 15 of file png_decoder.h.
| esphome::runtime_image::PngDecoder::PngDecoder | ( | RuntimeImage * | image | ) |
Construct a new PNG Decoder object.
| image | The RuntimeImage to decode the stream into. |
Definition at line 51 of file png_decoder.cpp.
|
override |
Definition at line 65 of file png_decoder.cpp.
|
overridevirtual |
Implements esphome::runtime_image::ImageDecoder.
Definition at line 85 of file png_decoder.cpp.
|
inline |
Definition at line 29 of file png_decoder.h.
|
inline |
Definition at line 28 of file png_decoder.h.
|
overridevirtual |
Reimplemented from esphome::runtime_image::ImageDecoder.
Definition at line 73 of file png_decoder.cpp.
|
protected |
Definition at line 33 of file png_decoder.h.
|
protected |
Definition at line 32 of file png_decoder.h.