summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-04-30 17:10:05 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-05-14 17:55:58 +0900
commit1ff6887d6b2311e582978342b398d6bf557c1acd (patch)
tree070315b339fb7cb2095b3a8308060d22af8e2391 /src/android/camera_device.h
parent0445a2dc02e8d686566553c50e89a7e873a964aa (diff)
android: camera_metadata: Auto-resize CameraMetadata
Previously we had to manually declare the size of CameraMetadata on allocation, and its count could not be changed after construction. Change CameraMetadata's behavior so that the user can simply add or update entries, and the CameraMetadata will auto-resize (double the size) as necessary. Also remove everything involved with calculating the initial size for any CameraMetadata instances. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 23457e47..ae162a45 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -98,7 +98,6 @@ private:
std::vector<libcamera::Size>
getRawResolutions(const libcamera::PixelFormat &pixelFormat);
- std::tuple<uint32_t, uint32_t> calculateStaticMetadataSize();
libcamera::FrameBuffer *createFrameBuffer(const buffer_handle_t camera3buffer);
void notifyShutter(uint32_t frameNumber, uint64_t timestamp);
void notifyError(uint32_t frameNumber, camera3_stream_t *stream);