android: camera_stream: Define explicit move constructor and destructors

There's no need for the move constructor and the destructor to be
inline. Define them explicitly, with default implementations. This
allows usage of the CameraStream class without a complete definition of
the PostProcessor class.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2021-10-19 17:18:01 +05:30 committed by Umang Jain
parent 5f4f444aed
commit 274607478c
2 changed files with 6 additions and 0 deletions

View file

@ -56,6 +56,10 @@ CameraStream::CameraStream(CameraDevice *const cameraDevice,
{
}
CameraStream::CameraStream(CameraStream &&other) = default;
CameraStream::~CameraStream() = default;
const StreamConfiguration &CameraStream::configuration() const
{
return config_->at(index_);

View file

@ -112,6 +112,8 @@ public:
CameraStream(CameraDevice *const cameraDevice,
libcamera::CameraConfiguration *config, Type type,
camera3_stream_t *camera3Stream, unsigned int index);
CameraStream(CameraStream &&other);
~CameraStream();
Type type() const { return type_; }
camera3_stream_t *camera3Stream() const { return camera3Stream_; }