embedblocks/jpeg-roi-decoder

0.1.0

Latest
uploaded 2 days ago
Region-of-interest JPEG decoder for ESP32. Decodes any rectangular sub-region of a JPEG without loading the full image, streaming output row-by-row so no full-frame buffer is required. Designed for LCD display use cases — provide your display dimensions and a pan offset, and the component handles scale selection, ROI math, and clamping internally. Built on TJpgDec. Supports FILE*, flash blobs, and PSRAM buffers as input sources. Runs on ESP32 (FreeRTOS async) and desktop (synchronous, for host testing).

2 examples

  • esp32 2
    • sdcard
      Decodes a JPEG from an SD card and writes the raw RGB565 output to a file on the same card.
      126.98 KB
    • uart
      This example demonstrates streaming a decoded JPEG image from an ESP32 to a PC over UART using a callback mechanism.
      126.63 KB