android: camera_stream: Add sourceStream
Add a sourceStream field to the CameraStream class, meant to contain a reference to the direct stream which produces actual image data for streams of type CameraStream::Mapped. The sourceStream of mapped streams will be used in later patches to make sure for each Mapped stream at least one libcamera::Stream is queued to the libcamera::Camera. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
b4d4b78c82
commit
fec64fb75a
3 changed files with 23 additions and 4 deletions
|
@ -52,9 +52,11 @@ LOG_DECLARE_CATEGORY(HAL)
|
|||
|
||||
CameraStream::CameraStream(CameraDevice *const cameraDevice,
|
||||
CameraConfiguration *config, Type type,
|
||||
camera3_stream_t *camera3Stream, unsigned int index)
|
||||
camera3_stream_t *camera3Stream,
|
||||
CameraStream *const sourceStream, unsigned int index)
|
||||
: cameraDevice_(cameraDevice), config_(config), type_(type),
|
||||
camera3Stream_(camera3Stream), index_(index)
|
||||
camera3Stream_(camera3Stream), sourceStream_(sourceStream),
|
||||
index_(index)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue