diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-05-15 20:38:55 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-05-18 14:45:29 +0300 |
commit | 64586e7d6e6230553d9ce7d6022a85008db020c4 (patch) | |
tree | 66455360fea2aa1dc6e11e91d51f4ba177d68d14 /src/android/camera_metadata.cpp | |
parent | 6aee488bfc320a68ceaf0634cec0b302c971c1b8 (diff) |
android: camera_metadata: Rename sizeofT argument to elementSize
The sizeofT argument to CameraMetadata::addEntry() stores the size of
one element. Its name is a bit cryptic as the function isn't a template
function with a typename T. Rename it to elementSize.
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>
Diffstat (limited to 'src/android/camera_metadata.cpp')
-rw-r--r-- | src/android/camera_metadata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/camera_metadata.cpp b/src/android/camera_metadata.cpp index bf8d2781..59366c50 100644 --- a/src/android/camera_metadata.cpp +++ b/src/android/camera_metadata.cpp @@ -110,12 +110,12 @@ bool CameraMetadata::resize(size_t count, size_t size) } bool CameraMetadata::addEntry(uint32_t tag, const void *data, size_t count, - size_t sizeofT) + size_t elementSize) { if (!valid_) return false; - if (!resize(1, count * sizeofT)) { + if (!resize(1, count * elementSize)) { LOG(CameraMetadata, Error) << "Failed to resize"; valid_ = false; return false; |