diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2021-09-08 16:48:25 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2021-09-10 10:26:55 +0900 |
commit | ba155eadb9b5e0976338c75aa21d95275f7c649c (patch) | |
tree | 8c0145a42c9376f9d60c040414ccd08826506de7 /src | |
parent | 67f0def9bae08edc79329e675b21cb87d598b119 (diff) |
libcamera: v4l2_pixelformat: Add entries for NV24 and NV42
The entries for NV24 and NV42 were missing from the V4L2PixelFormat map.
Add them.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/v4l2_pixelformat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp index 795da771..2c8167a7 100644 --- a/src/libcamera/v4l2_pixelformat.cpp +++ b/src/libcamera/v4l2_pixelformat.cpp @@ -97,6 +97,10 @@ const std::map<V4L2PixelFormat, V4L2PixelFormat::Info> vpf2pf{ { formats::NV21, "Y/CrCb 4:2:0" } }, { V4L2PixelFormat(V4L2_PIX_FMT_NV21M), { formats::NV21, "Y/CrCb 4:2:0 (N-C)" } }, + { V4L2PixelFormat(V4L2_PIX_FMT_NV24), + { formats::NV24, "Y/CbCr 4:4:4" } }, + { V4L2PixelFormat(V4L2_PIX_FMT_NV42), + { formats::NV42, "Y/CrCb 4:4:4" } }, { V4L2PixelFormat(V4L2_PIX_FMT_YUV420), { formats::YUV420, "Planar YUV 4:2:0" } }, { V4L2PixelFormat(V4L2_PIX_FMT_YUV420M), |