[libcamera-devel] [RFC 1/3] libcamera: stream: Add setters for image sizes and format
Jacopo Mondi
jacopo at jmondi.org
Sat Jan 26 16:13:16 CET 2019
Add methods to set width, height and pixelformat of a
StreamConfiguration instance.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
include/libcamera/stream.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index 8750797..ef7b32a 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -33,6 +33,10 @@ public:
void setDimension(unsigned int width, unsigned int height);
void setPixelFormat(unsigned int pixelformat);
+ void setWidth(unsigned int width) { width_ = width; }
+ void setHeight(unsigned int height) { height_ = height; }
+ void setPixelformat(unsigned int pix) { pixelformat_ = pix; }
+
private:
unsigned int id_;
unsigned int width_;
--
2.20.1
More information about the libcamera-devel
mailing list