summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-01-22 21:46:04 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-02-01 08:11:33 +0100
commit51d442d5a1c1839bb538aeca35a9451e2d325200 (patch)
treea4a28df3724c3b5670fc6580d94bfa853d0f9b00 /include
parent50e184d3f1f1b89b15ccdf1268e68b43a435c7d0 (diff)
libcamera: stream: add initial StreamConfiguration structure
Add an initial StreamConfiguration implementation to hold configuration data for a single stream of a Camera. In its current form not many configuration parameters are supported but it's expected the number of options will grow over time. At this stage the pixel format is represented as an unsigned int to allow for easy mapping to the V4L2 API. This might be subject to change in the future as we finalize how libcamera shall represent pixel formats. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/stream.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index 4f47d85e..4b24dd84 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -13,6 +13,12 @@ class Stream final
{
};
+struct StreamConfiguration {
+ unsigned int width;
+ unsigned int height;
+ unsigned int pixelFormat;
+};
+
} /* namespace libcamera */
#endif /* __LIBCAMERA_STREAM_H__ */