mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-21 15:53:54 +03:00
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>
This commit is contained in:
parent
117588b371
commit
a80d38109f
2 changed files with 30 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue