Managing Memory For JPEG Decoding - mchpgfx/legato.docs GitHub Wiki

Microchip Technology Managing Memory for JPEG Decoding

Managing Memory for JPEG Decoding

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 MGS Harmony Library fails to allocate memory for the JPEG decoder, the JPEG decoding operation would be halt. It will proceed to render the remainder of the UI design without the JPEG image.


If you are new to MPLAB® Harmony, you should probably start with these tutorials:


Is this page helpful? Send feedback.