mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-18 01:45:10 +03:00
android: framebuffer: Add HALFrameBuffer and replace FrameBuffer
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>
This commit is contained in:
parent
4843bfa66d
commit
b64fa1363c
9 changed files with 72 additions and 15 deletions
26
src/android/hal_framebuffer.h
Normal file
26
src/android/hal_framebuffer.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* 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_;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue