mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
libcamera: framebuffer: Add a function to check if planes are contiguous
Multi-planar frame buffers can store their planes contiguously in memory, or split them in discontiguous memory areas. Add a private function to check in which of these two categories the frame buffer belongs. This will be used to correctly handle the differences between the V4L2 single and multi planar APIs. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
This commit is contained in:
parent
78875938e9
commit
81a38f4373
2 changed files with 45 additions and 2 deletions
|
@ -21,9 +21,11 @@ public:
|
|||
Private();
|
||||
|
||||
void setRequest(Request *request) { request_ = request; }
|
||||
bool isContiguous() const { return isContiguous_; }
|
||||
|
||||
private:
|
||||
Request *request_;
|
||||
bool isContiguous_;
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue