[libcamera-devel] [RFC 0/1] libcamera: V4L2VideoDevice::to[V4L2]PixelFormat(): add Bayer formats

Andrey Konovalov andrey.konovalov at linaro.org
Sat Apr 4 23:57:29 CEST 2020


Hi,

This patch adds support for 8-bit, 10-bit, and 10-bit packed raw Bayer formats
in toPixelFormat() and toV4L2PixelFormat() methods of V4L2VideoDevice class.

I currently use this change for working with the simple pipeline.      

12-bit and 14-bit raw Bayer formats should be added too (plan to add them in
the next version of the patch). And this can be done the same way as it is done
here for the 8-bit and 10-bit ones. But this would make the switch statements
even more longer, so I am not sure if we should try making them more compact.
Hence the RFC.

Thanks,
Andrey




More information about the libcamera-devel mailing list