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

Message ID 20200404215730.16194-1-andrey.konovalov@linaro.org
Headers show
Series
  • libcamera: V4L2VideoDevice::to[V4L2]PixelFormat(): add Bayer formats
Related show

Message

Andrey Konovalov April 4, 2020, 9:57 p.m. UTC
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