summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2022-08-04 11:45:50 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-04 21:43:32 +0300
commit26c82ce13697e1af5950f4935ecff83c6453f351 (patch)
tree0af0bdbfc16eae5a748aa2072b02f8eb53d47bec /src
parent73570c06371306fe3e75d04149626b6827751854 (diff)
libcamera: Correct typos and omissions for packed 10-bit raw monochrome format
One typo is corrected, and this format is added to one further table where it was missing entirely. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/formats.cpp2
-rw-r--r--src/libcamera/v4l2_pixelformat.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
index f06bb4a7..0bd0e09a 100644
--- a/src/libcamera/formats.cpp
+++ b/src/libcamera/formats.cpp
@@ -509,7 +509,7 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
} },
{ formats::R10_CSI2P, {
.name = "R10_CSI2P",
- .format = formats::R10,
+ .format = formats::R10_CSI2P,
.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_Y10P), },
.bitsPerPixel = 10,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,
diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp
index 792acc1b..3590fb73 100644
--- a/src/libcamera/v4l2_pixelformat.cpp
+++ b/src/libcamera/v4l2_pixelformat.cpp
@@ -131,6 +131,8 @@ const std::map<V4L2PixelFormat, V4L2PixelFormat::Info> vpf2pf{
{ formats::R8, "8-bit Greyscale" } },
{ V4L2PixelFormat(V4L2_PIX_FMT_Y10),
{ formats::R10, "10-bit Greyscale" } },
+ { V4L2PixelFormat(V4L2_PIX_FMT_Y10P),
+ { formats::R10_CSI2P, "10-bit Greyscale Packed" } },
{ V4L2PixelFormat(V4L2_PIX_FMT_Y12),
{ formats::R12, "12-bit Greyscale" } },