[libcamera-devel] [PATCH 0/2] android: metadata usage tracking

Kieran Bingham kieran.bingham at ideasonboard.com
Tue Aug 4 13:31:05 CEST 2020


These are probably mostly just out for RFC, but I've used them to
determine how many entries, and how many bytes we are actually consuming
from the metadata objects through the android layer.

If they are useful, we can integrate them, or if someone wants to
determine this information locally, they can use these directly.

They add a bit of bloat to the objects, to store 4 extra size_t
variables, but I don't think that's too heavy, as there are probably
only three instances of this class.

Kieran Bingham (2):
  android: camera_metadata: Track storage usage
  android: camera_metadata: Report storage usages

 src/android/camera_device.cpp   |  6 ++++++
 src/android/camera_metadata.cpp | 17 ++++++++++++++++-
 src/android/camera_metadata.h   | 12 ++++++++++++
 3 files changed, 34 insertions(+), 1 deletion(-)

-- 
2.25.1



More information about the libcamera-devel mailing list