mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 08:25:07 +03:00
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 <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
This commit is contained in:
parent
e6886f6352
commit
8ae20f38bf
6 changed files with 16 additions and 17 deletions
|
@ -20,14 +20,13 @@ using namespace libcamera;
|
|||
LOG_DECLARE_CATEGORY(HAL)
|
||||
|
||||
class CameraBuffer::Private : public Extensible::Private,
|
||||
public libcamera::MappedBuffer
|
||||
public MappedBuffer
|
||||
{
|
||||
LIBCAMERA_DECLARE_PUBLIC(CameraBuffer)
|
||||
|
||||
public:
|
||||
Private(CameraBuffer *cameraBuffer, buffer_handle_t camera3Buffer,
|
||||
libcamera::PixelFormat pixelFormat, const libcamera::Size &size,
|
||||
int flags);
|
||||
PixelFormat pixelFormat, const Size &size, int flags);
|
||||
~Private();
|
||||
|
||||
unsigned int numPlanes() const;
|
||||
|
@ -58,13 +57,13 @@ private:
|
|||
|
||||
CameraBuffer::Private::Private([[maybe_unused]] CameraBuffer *cameraBuffer,
|
||||
buffer_handle_t camera3Buffer,
|
||||
libcamera::PixelFormat pixelFormat,
|
||||
const libcamera::Size &size, int flags)
|
||||
PixelFormat pixelFormat,
|
||||
const Size &size, int flags)
|
||||
: fd_(-1), flags_(flags), bufferLength_(-1), mapped_(false)
|
||||
{
|
||||
error_ = 0;
|
||||
|
||||
const auto &info = libcamera::PixelFormatInfo::info(pixelFormat);
|
||||
const auto &info = PixelFormatInfo::info(pixelFormat);
|
||||
if (!info.isValid()) {
|
||||
error_ = -EINVAL;
|
||||
LOG(HAL, Error) << "Invalid pixel format: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue