libcamera: formats: Add YVU422 pixel format
The YVU422 pixel format is defined in both DRM and V4L2. libcamera already supports YUV422, add support for the opposite chroma order. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
@@ -115,6 +115,8 @@ const std::map<V4L2PixelFormat, V4L2PixelFormat::Info> vpf2pf{
|
||||
{ formats::YUV422, "Planar YUV 4:2:2" } },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_YUV422M),
|
||||
{ formats::YUV422, "Planar YUV 4:2:2 (N-C)" } },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_YVU422M),
|
||||
{ formats::YVU422, "Planar YVU 4:2:2 (N-C)" } },
|
||||
|
||||
/* Greyscale formats. */
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_GREY),
|
||||
|
||||
Reference in New Issue
Block a user