Revert "libcamera: software_isp: gbm: Add a GBM helper class for GPU surface access"
GBM is not used any more - remove the helper class.
This reverts commit c60b1ce819.
Signed-off-by: Robert Mader <robert.mader@collabora.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> # sm8250/rb5, x1e/Dell Insprion14p
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
a5e01866ae
commit
7350d6cc5d
@@ -1,55 +0,0 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
/*
|
||||
* Copyright (C) 2024, Linaro Ltd.
|
||||
*
|
||||
* Authors:
|
||||
* Bryan O'Donoghue <bryan.odonoghue@linaro.org>
|
||||
*
|
||||
* Helper class for managing GBM interactions
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <gbm.h>
|
||||
|
||||
#include <libcamera/base/log.h>
|
||||
#include <libcamera/base/unique_fd.h>
|
||||
|
||||
#include <libcamera/formats.h>
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
LOG_DECLARE_CATEGORY(GBM)
|
||||
|
||||
class GBM
|
||||
{
|
||||
public:
|
||||
GBM();
|
||||
~GBM();
|
||||
|
||||
int createDevice();
|
||||
|
||||
/**
|
||||
* \brief Retrieve the GBM device handle
|
||||
*
|
||||
* \return Pointer to the gbm_device structure, or nullptr if the device
|
||||
* has not been created
|
||||
*/
|
||||
struct gbm_device *device() const { return gbmDevice_; }
|
||||
|
||||
/**
|
||||
* \brief Retrieve the pixel format
|
||||
*
|
||||
* \return The PixelFormat used by this GBM instance (ARGB8888)
|
||||
*/
|
||||
PixelFormat format() const { return format_; }
|
||||
|
||||
private:
|
||||
LIBCAMERA_DISABLE_COPY_AND_MOVE(GBM)
|
||||
|
||||
UniqueFD fd_;
|
||||
struct gbm_device *gbmDevice_ = nullptr;
|
||||
PixelFormat format_;
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
@@ -24,7 +24,6 @@ libcamera_internal_headers = files([
|
||||
'formats.h',
|
||||
'framebuffer.h',
|
||||
'egl.h',
|
||||
'gbm.h',
|
||||
'global_configuration.h',
|
||||
'ipa_data_serializer.h',
|
||||
'ipa_manager.h',
|
||||
|
||||
Reference in New Issue
Block a user