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

Pavel Machek pavel at ucw.cz
Fri Jul 15 22:59:44 CEST 2022


On Fri 2022-07-15 15:50:00, Jacopo Mondi wrote:
> 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 ?

FWIW, Reviewed-by: Pavel Machek <pavel at ucw.cz> . And yes, I'll try to
find time to test it.

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/20220715/cccddfb0/attachment.sig>


More information about the libcamera-devel mailing list