How to change the camera pixel formate from V4L2_PIX_FMT_YUYV to V4L2_PIX_FMT_RGB24

We have camera module which is output V4L2_PIX_FMT_YUYV.
But our application using RGB888(V4L2_PIX_FMT_RGB24).

How to convert it(color space conversion)?

Is it possible? or Is there any reference?

in below link, it looks impossible… I need confirmation it’s possiblity

hello wooleeyang,

had you already extend the color format support in camera_common_color_fmts,
once you’re able to acquire the YUV sensor data correctly, it is possible to convert the YUV into RGB by the conversion formula.

here are some similar topics for your reference,