summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-03-24 16:07:55 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-25 00:45:27 +0200
commit17a6e78e000bef54af9057fe5e84bdafb2759db4 (patch)
treed4c25bc5877dc52b11eb027486e0e5e597a260f5 /src/android/camera_device.h
parent14b262dacf363cc31dc4af64af5893bde017479f (diff)
android: Camera3RequestDescriptor: Manage buffers with std::vector
Camera3RequestDescriptor has a length and an allocated buffer for camera_stream_buffer_t array. This replaces the variables with std::vector. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 14e26b4d..a11cf243 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -74,8 +74,7 @@ private:
~Camera3RequestDescriptor();
uint32_t frameNumber_;
- uint32_t numBuffers_;
- camera3_stream_buffer_t *buffers_;
+ std::vector<camera3_stream_buffer_t> buffers_;
std::vector<std::unique_ptr<libcamera::FrameBuffer>> frameBuffers_;
CameraMetadata settings_;
std::unique_ptr<CaptureRequest> request_;