diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-04-08 11:00:15 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-04-16 14:55:58 +0200 |
commit | 4e1dc9004fca89223d54cf22bae09eff7c0c2d4b (patch) | |
tree | a9b9fa58a06540df7adb07c0a64e388257b49e22 | |
parent | 7726cba16f38d1e8275b6c34f97933506b6e23d5 (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.h | 4 |
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_; |