mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 08:55:06 +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
22
src/android/hal_framebuffer.cpp
Normal file
22
src/android/hal_framebuffer.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
/*
|
||||
* Copyright (C) 2022, Google Inc.
|
||||
*
|
||||
* hal_framebuffer.cpp - HAL Frame Buffer Handling
|
||||
*/
|
||||
|
||||
#include "hal_framebuffer.h"
|
||||
|
||||
#include <hardware/camera3.h>
|
||||
|
||||
HALFrameBuffer::HALFrameBuffer(std::unique_ptr<Private> d,
|
||||
buffer_handle_t handle)
|
||||
: FrameBuffer(std::move(d)), handle_(handle)
|
||||
{
|
||||
}
|
||||
|
||||
HALFrameBuffer::HALFrameBuffer(const std::vector<Plane> &planes,
|
||||
buffer_handle_t handle)
|
||||
: FrameBuffer(planes), handle_(handle)
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue