STM32H743 How to Use hardware JPEG encoder/decoder instead of LVGL built-in


H7 has hardware JPEG encoder and decoder, can I use STM32 hardware encoder instead of LVGL’s built-in encoder when using picture controls

What MCU/Processor/Board and compiler are you using?

H743 Mini custom version, MCU only
ILI9341 2.4-inch screen 320*240 SPI

What LVGL version are you using?

LVGL-master LVGL-v8.1

What do you want to achieve?

Use the external JPG codec instead of the built-in one

What have you tried so far?

Nothing. I don’t know how to do that

As described in docs jpg decoder enabled by

enabled in lv_conf.h by LV_USE_SJPG

So exclude LV_USE_SJPG from lv_conf.h. But you should write and register your own decoder which would use STM32-hardware instead of soft.

EDIT: as far as I understand the main purpose of the decoder is to open an image, decode it and transmit raw-data for processing to the image-widget functions.

EDIT2: as an example of decoder you can see sources of lv_lib_jpg decoder. Use hardware capabilities inside decoder_info(), decoder_open(), decoder_read_line()