summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-04-08 11:00:15 +0200
committerJacopo Mondi <jacopo@jmondi.org>2019-04-16 14:55:58 +0200
commit4e1dc9004fca89223d54cf22bae09eff7c0c2d4b (patch)
treea9b9fa58a06540df7adb07c0a64e388257b49e22
parent7726cba16f38d1e8275b6c34f97933506b6e23d5 (diff)
libcamera: stream: Make Stream inheritable
In preparation for multiple streams support prepare to allow sub-classing the Stream class by removing the 'final' specifier from the class definition and make its private members protected. Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--include/libcamera/stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index d0f7b0e1..8a47930f 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -43,7 +43,7 @@ private:
Size size_;
};
-class Stream final
+class Stream
{
public:
class StillCapture : public StreamUsage
@@ -68,7 +68,7 @@ public:
BufferPool &bufferPool() { return bufferPool_; }
const StreamConfiguration &configuration() const { return configuration_; }
-private:
+protected:
friend class Camera;
BufferPool bufferPool_;