summaryrefslogtreecommitdiff
path: root/include/libcamera/stream.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-30 21:16:28 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-30 22:18:42 +0300
commita2dddf7c26df3307b9d4554c25387a00687a6234 (patch)
treebe4004bb072d39d471ee790069e3f74d1cd5bbe0 /include/libcamera/stream.h
parentbaad55d00975f8931d51c333def20472457dc943 (diff)
libcamera: Use the Size class through libcamera
Several of our structures include width and height fields that model a size while we have a Size class for that purpose. Use the Size class through libcamera, and give it a toString() method like other geometry and format classes. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/stream.h')
-rw-r--r--include/libcamera/stream.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index 3caaefc9..0c986310 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -17,9 +17,8 @@ namespace libcamera {
class Camera;
struct StreamConfiguration {
- unsigned int width;
- unsigned int height;
unsigned int pixelFormat;
+ Size size;
unsigned int bufferCount;
@@ -40,7 +39,7 @@ public:
protected:
explicit StreamUsage(Role role);
- StreamUsage(Role role, int width, int height);
+ StreamUsage(Role role, const Size &size);
private:
Role role_;