mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
libcamera: stream: Add ColorSpace fields to StreamConfiguration
This is so that applications can choose appropriate color spaces which will then be passed down to the V4L2 devices. The ColorSpace field is actually optional. If it is not set you will get the camera's default color space. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
ddb5e9d37e
commit
96f990ea6c
2 changed files with 23 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <libcamera/color_space.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/geometry.h>
|
||||
#include <libcamera/pixel_format.h>
|
||||
|
@ -47,6 +48,8 @@ struct StreamConfiguration {
|
|||
|
||||
unsigned int bufferCount;
|
||||
|
||||
std::optional<ColorSpace> colorSpace;
|
||||
|
||||
Stream *stream() const { return stream_; }
|
||||
void setStream(Stream *stream) { stream_ = stream; }
|
||||
const StreamFormats &formats() const { return formats_; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue