From c2df74364fe380b17ae00e0178fa0e56b4dd55b2 Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Fri, 11 Dec 2020 09:53:34 +0000 Subject: android: camera_device: Introduce Camera3StreamConfig Camera3StreamConfig is a new class to store camera3_stream and types with associated StreamConfiguration. Signed-off-by: Hirokazu Honda Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/android/camera_device.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 872c7b18..c219ea84 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -128,6 +128,23 @@ const std::map camera3FormatsMap = { }, }; +/* + * \struct Camera3StreamConfig + * \brief Data to store StreamConfiguration associated with camera3_stream(s) + * \var streams List of the pairs of a stream requested by Android HAL client + * and CameraStream::Type associated with the stream + * \var config StreamConfiguration for streams + */ +struct Camera3StreamConfig { + struct Camera3Stream { + camera3_stream_t *stream; + CameraStream::Type type; + }; + + std::vector streams; + StreamConfiguration config; +}; + } /* namespace */ LOG_DECLARE_CATEGORY(HAL) -- cgit v1.2.1