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>
This commit is contained in:
Jacopo Mondi 2019-04-08 11:00:15 +02:00
parent 7726cba16f
commit 4e1dc9004f

View file

@ -43,7 +43,7 @@ private:
Size size_; Size size_;
}; };
class Stream final class Stream
{ {
public: public:
class StillCapture : public StreamUsage class StillCapture : public StreamUsage
@ -68,7 +68,7 @@ public:
BufferPool &bufferPool() { return bufferPool_; } BufferPool &bufferPool() { return bufferPool_; }
const StreamConfiguration &configuration() const { return configuration_; } const StreamConfiguration &configuration() const { return configuration_; }
private: protected:
friend class Camera; friend class Camera;
BufferPool bufferPool_; BufferPool bufferPool_;