android: camera_metadata: Add method to update an entry

Add a method to update an existing metadata tag entry, by wrapping
the update_metadata_entry() function provided by the Android
metadata library.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi
2020-07-24 14:28:01 +02:00
parent 3efc7e8834
commit 29b59a9146
2 changed files with 28 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@ public:
bool isValid() const { return valid_; }
bool addEntry(uint32_t tag, const void *data, size_t data_count);
bool updateEntry(uint32_t tag, const void *data, size_t data_count);
camera_metadata_t *get();
const camera_metadata_t *get() const;