Service of the bmp file saved in the RAM buffer

I started handling BMP files from the SD card and it works fine, but loading takes place in “installments”, which takes a long time and looks unelegant. I wrote one that reads a bmp file from the card, writes it to a buffer in memory and when I try to execute lv_img_set_src(ui_Image3, &img_dsc_img) the image is displayed but it is visible that the data is incorrectly interpreted. The BMP decoder is not started. This is because the source status is checked in the function and it is ‘Image source type is LV_IMG_SRC_VARIABLE’. Is there a way to handle raw bmp file data but not from the SD card but from the RAM buffer. I wanted to make a kind of ‘screen saver’ that would display bmp images previously downloaded from the SD card when the screen was idle.

Problem solved. Before I save the file to memory, I process it into the form as the BMP decoder does in LVGL.