cs-git' href='https://git.libcamera.org/libcamera/jmondi/libcamera.git' title='libcamera/jmondi/libcamera.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/src/android/hal_framebuffer.h
blob: dc96a7e193da41b2c5bd47203931a8195cd6079b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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_;
};