From a80d38109f651ae135987d481955720a05b2b90d Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Tue, 26 May 2020 12:31:35 +0200 Subject: android: camera_device: Calculate metadata size As we move to have more and more dynamically generated static metadata entries, the size of the metadata buffer has to be calculated dynamically inspecting the information collected from the camera. Provide a method to perform metadata buffers size calculation and use it when generating camera static metadata. Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- src/android/camera_device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/android/camera_device.h') diff --git a/src/android/camera_device.h b/src/android/camera_device.h index 4e8911da..ed11410a 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -68,6 +69,7 @@ private: }; int initializeStreamConfigurations(); + std::tuple calculateStaticMetadataSize(); void notifyShutter(uint32_t frameNumber, uint64_t timestamp); void notifyError(uint32_t frameNumber, camera3_stream_t *stream); std::unique_ptr getResultMetadata(int frame_number, -- cgit v1.2.1