diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2020-10-03 13:45:29 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2020-10-07 16:07:45 +0200 |
commit | 6c8837da5e8f9ba31aed338f8f6bbe578ddd638a (patch) | |
tree | 8d880c1a76cf140e5ddb64ecf8ba47c37e152e28 /src/android/camera_stream.h | |
parent | fc1fcb5bc9c21cc497bb978b866885787587aa9f (diff) |
android: camera_device: Make CameraStream configuration nicer
Loop over the CameraStream instances and use their interface to perform
CameraStream configuration.
Modify CameraStream::configure() to configure the android stream buffer
count and to retrieve the StreamConfiguration by index instead of
receiving it as a parameter.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_stream.h')
-rw-r--r-- | src/android/camera_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_stream.h b/src/android/camera_stream.h index f46cfd60..4c51f0fb 100644 --- a/src/android/camera_stream.h +++ b/src/android/camera_stream.h @@ -114,7 +114,7 @@ public: const libcamera::StreamConfiguration &configuration() const; libcamera::Stream *stream() const; - int configure(const libcamera::StreamConfiguration &cfg); + int configure(); int process(const libcamera::FrameBuffer &source, MappedCamera3Buffer *dest, CameraMetadata *metadata); |