embedblocks/jpeg-roi-decoder

0.4.0

Latest
uploaded 4 days ago
Streaming region-of-interest JPEG decoder for ESP32 based on tjpgd. Stream JPEG data in from any source, stream decoded pixel rows out to your callback — without loading the full image into RAM, without a seekable source, without a full-frame output buffer. Stream in from a file, a flash blob, an HTTP response body, a UART byte stream, a FreeRTOS queue, a TCP socket, or a DMA ring buffer. If you can hand bytes to a callback, you can decode a JPEG.

3 examples

  • esp32 3
    • https
      This example fetches a JPEG image over HTTPS, decodes it without a full-image buffer, and sends pixel rows to a PC via UART.
      10.97 KB
    • sdcard
      Decodes a JPEG from an SD card and writes raw RGB565 output to a file, demonstrating streaming with minimal buffer use.
      159.18 KB
    • uart
      Decodes a JPEG from flash and streams the RGB565 output to a PC over UART, reconstructing the image as a PNG.
      159.78 KB