summaryrefslogtreecommitdiff
path: root/src/libcamera
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera')
-rw-r--r--src/libcamera/formats.cpp26
-rw-r--r--src/libcamera/formats.yaml4
-rw-r--r--src/libcamera/v4l2_pixelformat.cpp4
3 files changed, 34 insertions, 0 deletions
diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
index edfc852c..283ecb3d 100644
--- a/src/libcamera/formats.cpp
+++ b/src/libcamera/formats.cpp
@@ -495,6 +495,32 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
.pixelsPerGroup = 2,
.planes = {{ { 2, 1 }, { 1, 1 }, { 1, 1 } }},
} },
+ { formats::YUV444, {
+ .name = "YUV444",
+ .format = formats::YUV444,
+ .v4l2Formats = {
+ .single = V4L2PixelFormat(),
+ .multi = V4L2PixelFormat(V4L2_PIX_FMT_YUV444M),
+ },
+ .bitsPerPixel = 24,
+ .colourEncoding = PixelFormatInfo::ColourEncodingYUV,
+ .packed = false,
+ .pixelsPerGroup = 1,
+ .planes = {{ { 1, 1 }, { 1, 1 }, { 1, 1 } }},
+ } },
+ { formats::YVU444, {
+ .name = "YVU444",
+ .format = formats::YVU444,
+ .v4l2Formats = {
+ .single = V4L2PixelFormat(),
+ .multi = V4L2PixelFormat(V4L2_PIX_FMT_YVU444M),
+ },
+ .bitsPerPixel = 24,
+ .colourEncoding = PixelFormatInfo::ColourEncodingYUV,
+ .packed = false,
+ .pixelsPerGroup = 1,
+ .planes = {{ { 1, 1 }, { 1, 1 }, { 1, 1 } }},
+ } },
/* Greyscale formats. */
{ formats::R8, {
diff --git a/src/libcamera/formats.yaml b/src/libcamera/formats.yaml
index 0b527dbe..7dda0132 100644
--- a/src/libcamera/formats.yaml
+++ b/src/libcamera/formats.yaml
@@ -71,6 +71,10 @@ formats:
fourcc: DRM_FORMAT_YUV422
- YVU422:
fourcc: DRM_FORMAT_YVU422
+ - YUV444:
+ fourcc: DRM_FORMAT_YUV444
+ - YVU444:
+ fourcc: DRM_FORMAT_YVU444
- MJPEG:
fourcc: DRM_FORMAT_MJPEG
diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp
index bbada052..58fc4e9d 100644
--- a/src/libcamera/v4l2_pixelformat.cpp
+++ b/src/libcamera/v4l2_pixelformat.cpp
@@ -117,6 +117,10 @@ const std::map<V4L2PixelFormat, V4L2PixelFormat::Info> vpf2pf{
{ formats::YUV422, "Planar YUV 4:2:2 (N-C)" } },
{ V4L2PixelFormat(V4L2_PIX_FMT_YVU422M),
{ formats::YVU422, "Planar YVU 4:2:2 (N-C)" } },
+ { V4L2PixelFormat(V4L2_PIX_FMT_YUV444M),
+ { formats::YUV444, "Planar YUV 4:4:4 (N-C)" } },
+ { V4L2PixelFormat(V4L2_PIX_FMT_YUV444M),
+ { formats::YVU444, "Planar YVU 4:4:4 (N-C)" } },
/* Greyscale formats. */
{ V4L2PixelFormat(V4L2_PIX_FMT_GREY),