How to add New colour format support for BGRX or BGRA

Hi, I’ve just started working with LVGL in a Linux environment. The framebuffer pixel format is BGRX, while the existing LVGL support appears to be for XRGB and ARGB formats. I initially tried using a for loop to manually swap the R and B bytes, but the performance is quite slow. Could someone please guide me on how to add proper support for the BGRX format in an optimized way, without lag?