[libcamera-devel] [PATCH 3/3] gstreamer: Provide colorimetry <> libcamera::ColorSpace mappings

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Jul 31 22:28:46 CEST 2022


Hi Nicolas,

(CC'ing David)

On Fri, Jul 29, 2022 at 11:29:30AM -0400, Nicolas Dufresne wrote:
> Hi Umang,
> 
> Have you considered creating your baseline based on v4lsrc existing mapping ?
> You can check you V4L2 <-> libcamera <-> gstreamer mapping against the v4l2src
> v4l2 <-> gst mapping ? I don't pretend this will have no issues at all, but at
> leas the mapping exercise base on V4L2 text have been done there once.
> 
> https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c#L2055

Thanks for the pointer.

That logic seems sensible, and likely something we'll want to do in
V4L2Device::fromColorSpace() and V4L2Device::toColorSpace().

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list