summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/camera_buffer.h2
-rw-r--r--src/android/mm/generic_camera_buffer.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/android/camera_buffer.h b/src/android/camera_buffer.h
index 00b06150..0590cd84 100644
--- a/src/android/camera_buffer.h
+++ b/src/android/camera_buffer.h
@@ -14,7 +14,7 @@
class CameraBuffer : public libcamera::MappedBuffer
{
public:
- CameraBuffer(const buffer_handle_t camera3buffer, int flags);
+ CameraBuffer(buffer_handle_t camera3Buffer, int flags);
~CameraBuffer();
};
diff --git a/src/android/mm/generic_camera_buffer.cpp b/src/android/mm/generic_camera_buffer.cpp
index bd9152cf..d1407f9c 100644
--- a/src/android/mm/generic_camera_buffer.cpp
+++ b/src/android/mm/generic_camera_buffer.cpp
@@ -13,16 +13,16 @@ using namespace libcamera;
LOG_DECLARE_CATEGORY(HAL)
-CameraBuffer::CameraBuffer(const buffer_handle_t camera3buffer, int flags)
+CameraBuffer::CameraBuffer(buffer_handle_t camera3Buffer, int flags)
{
- maps_.reserve(camera3buffer->numFds);
+ maps_.reserve(camera3Buffer->numFds);
error_ = 0;
- for (int i = 0; i < camera3buffer->numFds; i++) {
- if (camera3buffer->data[i] == -1)
+ for (int i = 0; i < camera3Buffer->numFds; i++) {
+ if (camera3Buffer->data[i] == -1)
continue;
- off_t length = lseek(camera3buffer->data[i], 0, SEEK_END);
+ off_t length = lseek(camera3Buffer->data[i], 0, SEEK_END);
if (length < 0) {
error_ = -errno;
LOG(HAL, Error) << "Failed to query plane length";
@@ -30,7 +30,7 @@ CameraBuffer::CameraBuffer(const buffer_handle_t camera3buffer, int flags)
}
void *address = mmap(nullptr, length, flags, MAP_SHARED,
- camera3buffer->data[i], 0);
+ camera3Buffer->data[i], 0);
if (address == MAP_FAILED) {
error_ = -errno;
LOG(HAL, Error) << "Failed to mmap plane";