From 8ae20f38bf89fb007c9fd7eeb1e10a1a9c00f40e Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Fri, 3 Sep 2021 13:14:56 +0530 Subject: android: Cleanup libcamera namespace usage Usually .cpp files are equipped with using namespace libcamera; Hence, it is unnecessary mentioning the explicit namespace of libcamera at certain places. While at it, a small typo in a comment was noticed and fixed as part of this patch. Signed-off-by: Umang Jain Reviewed-by: Laurent Pinchart Reviewed-by: Hirokazu Honda --- src/android/camera_device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/android/camera_device.cpp') diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 8ca76719..d782067e 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -746,8 +746,8 @@ int CameraDevice::configureStreams(camera3_stream_configuration_t *stream_list) } FrameBuffer *CameraDevice::createFrameBuffer(const buffer_handle_t camera3buffer, - libcamera::PixelFormat pixelFormat, - const libcamera::Size &size) + PixelFormat pixelFormat, + const Size &size) { FileDescriptor fd; /* @@ -1140,7 +1140,7 @@ void CameraDevice::requestComplete(Request *request) if (!resultMetadata) { notifyError(descriptor.frameNumber_, nullptr, CAMERA3_MSG_ERROR_RESULT); - /* The camera framework expects an empy metadata pack on error. */ + /* The camera framework expects an empty metadata pack on error. */ resultMetadata = std::make_unique(0, 0); } -- cgit v1.2.1