libcamera: Add support for planar YUV422 and YUV420 formats
These formats can be helpful when downstream applications or libraries support them natively (avoiding a costly conversion). Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Tested-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
405ba5fd4a
commit
c3ed943c99
@@ -63,6 +63,8 @@ const std::map<V4L2PixelFormat, PixelFormat> vpf2pf{
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_NV61), formats::NV61 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_NV12), formats::NV12 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_NV21), formats::NV21 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_YUV420), formats::YUV420 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_YUV422P), formats::YUV422 },
|
||||
|
||||
/* Greyscale formats. */
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_GREY), formats::R8 },
|
||||
|
||||
Reference in New Issue
Block a user