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 |
| |
| bool | uses_direct_rgb565 () const |
| |
| void | draw_rgb565 (int x, int y, int w, int h, const uint8_t *pixels) |
| |
| | 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.
|
| |
| virtual bool | knows_end () const |
| | Whether is_finished() can tell a complete image from a cut-off one.
|
| |
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 |
◆ draw_rgb565()
| void esphome::runtime_image::JpegDecoder::draw_rgb565 |
( |
int | x, |
|
|
int | y, |
|
|
int | w, |
|
|
int | h, |
|
|
const uint8_t * | pixels ) |
◆ prepare_rgb565_scaling_()
| bool esphome::runtime_image::JpegDecoder::prepare_rgb565_scaling_ |
( |
int | width, |
|
|
int | height ) |
|
protected |
◆ uses_direct_rgb565()
| bool esphome::runtime_image::JpegDecoder::uses_direct_rgb565 |
( |
| ) |
const |
|
inline |
◆ direct_rgb565_
| bool esphome::runtime_image::JpegDecoder::direct_rgb565_ {false} |
|
protected |
◆ jpeg_
| JPEGDEC esphome::runtime_image::JpegDecoder::jpeg_ {} |
|
protected |
◆ source_height_
| int esphome::runtime_image::JpegDecoder::source_height_ {0} |
|
protected |
◆ source_width_
| int esphome::runtime_image::JpegDecoder::source_width_ {0} |
|
protected |
◆ x_boundaries_
| FixedVector<uint16_t> esphome::runtime_image::JpegDecoder::x_boundaries_ {} |
|
protected |
◆ y_boundaries_
| FixedVector<uint16_t> esphome::runtime_image::JpegDecoder::y_boundaries_ {} |
|
protected |
The documentation for this class was generated from the following files: