ESPHome
2025.2.0
|
Image decoder specialization for PNG images. More...
#include <png_image.h>
Public Member Functions | |
PngDecoder (OnlineImage *image) | |
Construct a new PNG Decoder object. More... | |
~PngDecoder () override | |
int | prepare (size_t download_size) override |
int HOT | decode (uint8_t *buffer, size_t size) override |
![]() | |
ImageDecoder (OnlineImage *image) | |
Construct a new Image Decoder object. More... | |
virtual | ~ImageDecoder ()=default |
bool | set_size (int width, int height) |
Request the image to be resized once the actual dimensions are known. More... | |
void | draw (int x, int y, int w, int h, const Color &color) |
Fill a rectangle on the display_buffer using the defined color. More... | |
bool | is_finished () const |
Protected Attributes | |
pngle_t * | pngle_ |
![]() | |
OnlineImage * | image_ |
size_t | download_size_ = 1 |
size_t | decoded_bytes_ = 0 |
double | x_scale_ = 1.0 |
double | y_scale_ = 1.0 |
Image decoder specialization for PNG images.
Definition at line 14 of file png_image.h.
|
inline |
Construct a new PNG Decoder object.
display | The image to decode the stream into. |
Definition at line 21 of file png_image.h.
|
inlineoverride |
Definition at line 22 of file png_image.h.
|
overridevirtual |
Implements esphome::online_image::ImageDecoder.
Definition at line 55 of file png_image.cpp.
|
overridevirtual |
Reimplemented from esphome::online_image::ImageDecoder.
Definition at line 43 of file png_image.cpp.
|
protected |
Definition at line 28 of file png_image.h.