mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 08:25:07 +03:00
HALFrameBuffer is derived from FrameBuffer with access to buffer_handle_t, which is needed for JEA usage. Signed-off-by: Harvey Yang <chenghaoyang@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Han-Lin Chen <hanlinchen@chromium.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
26 lines
557 B
C++
26 lines
557 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2022, Google Inc.
|
|
*
|
|
* hal_framebuffer.h - HAL Frame Buffer Handling
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "libcamera/internal/framebuffer.h"
|
|
|
|
#include <hardware/camera3.h>
|
|
|
|
class HALFrameBuffer final : public libcamera::FrameBuffer
|
|
{
|
|
public:
|
|
HALFrameBuffer(std::unique_ptr<Private> d,
|
|
buffer_handle_t handle);
|
|
HALFrameBuffer(const std::vector<Plane> &planes,
|
|
buffer_handle_t handle);
|
|
|
|
buffer_handle_t handle() const { return handle_; }
|
|
|
|
private:
|
|
buffer_handle_t handle_;
|
|
};
|