summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-12-10 14:44:20 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-12-13 11:29:01 +0200
commit3e520cadf18ac53eed0fc98fb1d58368ef80a61d (patch)
tree8a7bac56c6490f725c23a35d6d1c8827c0659b72 /include
parente86aed6166449189eaf1b7e9d734236797e3d0c3 (diff)
libcamera: video_device: Support passing ColorSpaces to V4L2 video devices
The ColorSpace from the StreamConfiguration is now handled appropriately in the V4L2VideoDevice. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/v4l2_videodevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libcamera/internal/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h
index 9b2ec3af..2d2ccc47 100644
--- a/include/libcamera/internal/v4l2_videodevice.h
+++ b/include/libcamera/internal/v4l2_videodevice.h
@@ -10,6 +10,7 @@
#include <array>
#include <atomic>
#include <memory>
+#include <optional>
#include <stdint.h>
#include <string>
#include <vector>
@@ -21,6 +22,7 @@
#include <libcamera/base/signal.h>
#include <libcamera/base/unique_fd.h>
+#include <libcamera/color_space.h>
#include <libcamera/framebuffer.h>
#include <libcamera/geometry.h>
#include <libcamera/pixel_format.h>
@@ -167,6 +169,7 @@ public:
V4L2PixelFormat fourcc;
Size size;
+ std::optional<ColorSpace> colorSpace;
std::array<Plane, 3> planes;
unsigned int planesCount = 0;