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>
This commit is contained in:
parent
e86aed6166
commit
3e520cadf1
2 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue