summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-05-26 12:31:35 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-06-08 23:01:54 +0200
commita80d38109f651ae135987d481955720a05b2b90d (patch)
tree67c76d20151e7a3a4f479f1a6cd3a0af3b8c7f2b /src/android/camera_device.h
parent117588b371ad8d1fbe6f8089c1017338d9d991e7 (diff)
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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h2
1 files changed, 2 insertions, 0 deletions
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 <map>
#include <memory>
+#include <tuple>
#include <vector>
#include <hardware/camera3.h>
@@ -68,6 +69,7 @@ private:
};
int initializeStreamConfigurations();
+ std::tuple<uint32_t, uint32_t> calculateStaticMetadataSize();
void notifyShutter(uint32_t frameNumber, uint64_t timestamp);
void notifyError(uint32_t frameNumber, camera3_stream_t *stream);
std::unique_ptr<CameraMetadata> getResultMetadata(int frame_number,