How to display the camera preview picture?

I am a beginner of the LittlevGL, My device has a camera,the camera preview picture format is YUV, How to display the camera preview picture? thank you advance.

First, you need to find a way of getting your picture into a standard RGB bitmap format (either 16-bit or 32-bit color, depending on what your screen uses).

Then you can look at integrating it with LittlevGL.

Thank for your advise

If you convert the image to ARGB it should work right away if you map it to the map field of lv_img_dsc_t, if you are working with a 32 bit display.

Hi simon,
can the LVGL be used in Arduino IDE? do you have an example to use it to display picture?