Managing Memory for JPEG Decoding

Last modified by Microchip on 2024/03/29 13:29

The runtime JPEG decoder utilizes a single 16 x 16, 24-bit RGB888 (768 bytes) sample buffer to decode an image, regardless of the resolution of the full image. This memory is larger than the largest micro buffer in the Fixed Pool. The Legato™ memory allocator will draw from the Variable Heap during runtime.

If JPEG decoding is required, make sure the Variable Heap has at least this amount of memory configured.

During runtime, if the Legato Graphics Library fails to allocate memory for the JPEG decoder, the JPEG decoding operation would be halted. It will proceed to render the remainder of the UI design without the JPEG image.