mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-14 07:59:44 +03:00
android: camera_device: Introduce Camera3StreamConfig
Camera3StreamConfig is a new class to store camera3_stream and types with associated StreamConfiguration. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
e638ffde53
commit
c2df74364f
1 changed files with 17 additions and 0 deletions
|
@ -128,6 +128,23 @@ const std::map<int, const Camera3Format> 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<Camera3Stream> streams;
|
||||||
|
StreamConfiguration config;
|
||||||
|
};
|
||||||
|
|
||||||
} /* namespace */
|
} /* namespace */
|
||||||
|
|
||||||
LOG_DECLARE_CATEGORY(HAL)
|
LOG_DECLARE_CATEGORY(HAL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue