[libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2 formats to a single libcamera::format

Pavel Machek pavel at ucw.cz
Sat Jul 16 12:15:20 CEST 2022


Hi!

> This series addresses the requirement of mapping multiple V4L2 pixel formats
> to a single libcamera format. Specifically, it allows to map V4L2_PIX_FMT_JPEG
> and V4L2_PIX_FMT_MJPEG to libcamera::formats::MJPEG.
> 
> The series starts by allowing to associate mulitple V4L2 FourCC in
> PixelFormatInfo and re-introduces toV4L2PixelFormat() in V4L2VideoDevice in
> order to select among from the list of V4L2 formats the first one supported
> from the video device.
> 
> Patch [7/8] adds a multiplanar flag to V4L2VideoDevice::toV4L2PixelFormat() to
> allow selection of the contiguous or non-contiguous format versions.
> 
> Finally, the last patch associates V4L2_PIX_FMT_JPEG to formats::MJPEG.
> 
> Tested with a UVC camera.
> 
> Pavel, could you please test on the pinephone please ?

I tried to do quick testing, but it is not trivial as I have to patch
libcamera to get it work on PinePhone at all. I could not get it to
work so far.

Best regards,
								Pavel 
-- 
People of Russia, stop Putin before his war on Ukraine escalates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220716/4b037859/attachment.sig>


More information about the libcamera-devel mailing list