|
| | PngDecoder (RuntimeImage *image) |
| | Construct a new PNG Decoder object.
|
| |
| | ~PngDecoder () override |
| |
| void | reset () 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 |
| |
| | 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 bool | supports_source () const |
| | Whether this decoder can read a DecodeSource itself, a step at a time, instead of being fed data.
|
| |
| virtual int | begin_source (DecodeSource *source) |
| | Start decoding from a source the decoder reads itself.
|
| |
| virtual int | decode_step () |
| | Decode a little more of an image started with begin_source(), keeping each call short.
|
| |
| 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.
|
| |
| size_t | get_decoded_bytes () const |
| | Bytes of the image the decoder has used so far.
|
| |
| 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.
|
| |
| bool | uses_direct_rgb565 () const |
| | The image is opaque RGB565, so draw() writes it straight into the buffer.
|
| |
|
| bool | resize_image_ (int width, int height) |
| | Resize the image for a width x height source, without preparing to draw. prepare_draw_() must follow.
|
| |
| void | prepare_draw_ (int width, int height) |
| | Draw a source of width x height over the whole buffer from now on.
|
| |
| void | draw_rgb565_ (int x, int y, int w, int h, uint16_t rgb565) |
| | Paint a block of source pixels in one color straight into the buffer. Only while uses_direct_rgb565().
|
| |
| uint8_t * | image_buffer_ () const |
| | The image's pixel buffer, for decoders that write their output straight into it.
|
| |
| bool | image_is_big_endian_ () const |
| |
Image decoder specialization for PNG images.
Definition at line 15 of file png_decoder.h.