JPEGDEC (error 3: UNSUPPORTED_FEATURE) and M5GFX's TJpgDec both failed on ~70% of Immich preview images due to: - Optimized Huffman tables exceeding 12-bit DC code limit - Extended sequential mode (SOF1) misidentified as baseline - Progressive JPEG not handled by either decoder stb_image.h handles all standard JPEG modes (baseline, progressive, extended sequential, arbitrary Huffman tables) in a single decoder. Changes: - Add vendored stb_image.h (JPEG-only, PSRAM allocator) - Rewrite decodeAndFit() to use stbi_load_from_memory() - Remove JPEGDEC library dependency - Remove jpegDrawCallback, DecodeContext, parseJpegHeader, decodeFallbackLGFX (all obsolete) - Flash usage decreased: 1345KB -> 1317KB Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
935 B
INI
36 lines
935 B
INI
; PlatformIO configuration for M5Stack PaperColor Immich Frame
|
|
[env:m5stack-papercolor]
|
|
platform = espressif32 @ 6.12.0
|
|
board = esp32s3box
|
|
framework = arduino
|
|
board_build.partitions = partitions_custom.csv
|
|
board_upload.flash_size = 16MB
|
|
board_upload.maximum_size = 16777216
|
|
board_build.arduino.memory_type = qio_opi
|
|
board_build.filesystem = littlefs
|
|
monitor_speed = 115200
|
|
upload_speed = 921600
|
|
build_flags =
|
|
-DESP32S3
|
|
-DBOARD_HAS_PSRAM
|
|
-DCORE_DEBUG_LEVEL=3
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DARDUINO_USB_MODE=1
|
|
-DARDUINO_LOOP_STACK_SIZE=32768
|
|
lib_deps =
|
|
m5stack/M5Unified @ ^0.2.2
|
|
m5stack/M5GFX @ ^0.2.5
|
|
https://github.com/m5stack/M5PM1.git
|
|
mathieucarbou/ESP Async WebServer @ ^3.0.6
|
|
bblanchon/ArduinoJson @ ^7.0.0
|
|
ricmoo/QRCode @ ^0.0.1
|
|
lib_ignore =
|
|
WebServer
|
|
|
|
[env:native]
|
|
platform = native
|
|
build_flags = -std=c++17
|
|
test_framework = unity
|
|
lib_deps =
|
|
bblanchon/ArduinoJson @ ^7.0.0
|