summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-15 20:38:55 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-18 14:45:29 +0300
commitd189248302340909407f40a880af8a181dfd6203 (patch)
tree97dbfab20bab0823ef3627a686ae65b6b0710e97
parent6dcfba2e9d65b0439265ae267a436b40bb222e4d (diff)
android: camera_metadata: Make internal functions private
The resize() function and the addEntry() override that takes a void pointer are not meant to be called by the user of the CameraMetadata class. Make them private. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Tested-by: Paul Elder <paul.elder@ideasonboard.com>
-rw-r--r--src/android/camera_metadata.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/android/camera_metadata.h b/src/android/camera_metadata.h
index f95c3458..d7c8d9df 100644
--- a/src/android/camera_metadata.h
+++ b/src/android/camera_metadata.h
@@ -24,7 +24,6 @@ public:
CameraMetadata &operator=(const CameraMetadata &other);
bool isValid() const { return valid_; }
- bool resize(size_t count, size_t size);
bool getEntry(uint32_t tag, camera_metadata_ro_entry_t *entry) const;
template<typename T,
@@ -72,14 +71,16 @@ public:
return updateEntry(tag, data.data(), data.size());
}
- bool addEntry(uint32_t tag, const void *data, size_t count,
- size_t elementSize);
bool updateEntry(uint32_t tag, const void *data, size_t count);
camera_metadata_t *get();
const camera_metadata_t *get() const;
private:
+ bool resize(size_t count, size_t size);
+ bool addEntry(uint32_t tag, const void *data, size_t count,
+ size_t elementSize);
+
camera_metadata_t *metadata_;
bool valid_;
};