Image decoder specialization for JPEG images.
More...
#include <jpeg_decoder.h>
|
| | JpegDecoder (RuntimeImage *image) |
| | Construct a new JPEG Decoder object.
|
| |
| | ~JpegDecoder () override |
| |
| int HOT | decode (uint8_t *buffer, size_t size) override |
| |
| | ImageDecoder (RuntimeImage *image, ImageFormat format) |
| | Construct a new Image Decoder object.
|
| |
| virtual | ~ImageDecoder ()=default |
| |
| ImageFormat | get_format () const |
| | Get the image format handled by this decoder.
|
| |
| bool | is_active () const |
| | Check if a decoding session is in progress (prepare() called, reset() not yet).
|
| |
| virtual void | reset () |
| | Reset the decoder state, ending any decoding session.
|
| |
| virtual int | prepare (size_t expected_size) |
| | Initialize the decoder, starting a new decoding session.
|
| |
| 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.
|
| |
Image decoder specialization for JPEG images.
Definition at line 14 of file jpeg_decoder.h.
◆ JpegDecoder()
| esphome::runtime_image::JpegDecoder::JpegDecoder |
( |
RuntimeImage * | image | ) |
|
|
inline |
Construct a new JPEG Decoder object.
- Parameters
-
Definition at line 21 of file jpeg_decoder.h.
◆ ~JpegDecoder()
| esphome::runtime_image::JpegDecoder::~JpegDecoder |
( |
| ) |
|
|
inlineoverride |
◆ decode()
| int HOT esphome::runtime_image::JpegDecoder::decode |
( |
uint8_t * | buffer, |
|
|
size_t | size ) |
|
overridevirtual |
◆ jpeg_
| JPEGDEC esphome::runtime_image::JpegDecoder::jpeg_ {} |
|
protected |
The documentation for this class was generated from the following files: