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>
22 lines
494 B
C++
22 lines
494 B
C++
/* 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)
|
|
{
|
|
}
|