mirror of
https://github.com/Bodmer/JPEGDecoder.git
synced 2025-05-17 23:15:57 +08:00
Add note about progressive format - issue #28
The picojpeg decoder used in the library cannot handle progressive format jpeg files.
This commit is contained in:
@ -7,6 +7,8 @@ The library works on the Arduino Due, ESP32 and ESP8266 (e.g. NodeMCU 1.0). User
|
||||
|
||||
Example images can be found in the "extras" folder.
|
||||
|
||||
Jpeg files in the "Progressive" format (where image data is compressed in multiple passes with progressively higher detail) are not supported since this would require much more memory, or too many Inverse Discrete Cosine Transform's for typical embedded systems.
|
||||
|
||||
High Jpeg compression ratios work best on images with smooth colour changes, however the Baboon40.jpg image at only 23.8 KBytes renders quite nicely. Typically a 480x320 image can be compressed without much degradation to less than 32 KBytes, in comparison a 24 bit BMP image would occupy 461 KBytes! For comaprison the 480 x 320 Mouse480 image has been to compressed to a mere 6.45 Kbytes!
|
||||
|
||||
When storing the jpeg in a memory array bear in mind the Arduino has a maximum 32767 byte limit for the maximum size of an array (32 KBytes minus 1 byte).
|
||||
|
Reference in New Issue
Block a user