summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/framebuffer.h
blob: cd33c295466eac0aecbf8f2bfd0809c7643fa336 (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
27
28
29
30
31
32
33
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2020, Google Inc.
 *
 * framebuffer.h - Internal frame buffer handling
 */
#ifndef __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__
#define __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__

#include <libcamera/base/class.h>

#include <libcamera/framebuffer.h>

namespace libcamera {

class FrameBuffer::Private : public Extensible::Private
{
	LIBCAMERA_DECLARE_PUBLIC(FrameBuffer)

public:
	Private();

	void setRequest(Request *request) { request_ = request; }
	bool isContiguous() const { return isContiguous_; }

private:
	Request *request_;
	bool isContiguous_;
};

} /* namespace libcamera */

#endif /* __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__ */