libcamera  v0.0.0+3-3b6e2d50-dirty (2022-01-27T16:18:04+08:00)
Supporting cameras in Linux since 2019
framebuffer.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * Copyright (C) 2020, Google Inc.
4  *
5  * framebuffer.h - Internal frame buffer handling
6  */
7 #ifndef __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__
8 #define __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__
9 
10 #include <libcamera/base/class.h>
11 
12 #include <libcamera/framebuffer.h>
13 
14 namespace libcamera {
15 
17 {
19 
20 public:
21  Private();
22 
23  void setRequest(Request *request) { request_ = request; }
24  bool isContiguous() const { return isContiguous_; }
25 
26 private:
27  Request *request_;
28  bool isContiguous_;
29 };
30 
31 } /* namespace libcamera */
32 
33 #endif /* __LIBCAMERA_INTERNAL_FRAMEBUFFER_H__ */
Utilities to help constructing class interfaces.
#define LIBCAMERA_DECLARE_PUBLIC(klass)
Declare public data for a private class.
Base class for private data managed through a d-pointer.
Definition: class.h:65
Base class for FrameBuffer private data.
Definition: framebuffer.h:17
void setRequest(Request *request)
Set the request this buffer belongs to.
Definition: framebuffer.h:23
bool isContiguous() const
Check if the frame buffer stores planes contiguously in memory.
Definition: framebuffer.h:24
Frame buffer data and its associated dynamic metadata.
Definition: framebuffer.h:49
Request * request() const
Retrieve the request this buffer belongs to.
Definition: framebuffer.cpp:274
A frame capture request.
Definition: request.h:29
Frame buffer handling.
Top-level libcamera namespace.
Definition: bound_method.h:15