summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-09-02 03:04:44 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-09-07 19:18:09 +0300
commit81a38f43738440490e9fcc1ce96b22783f541942 (patch)
tree004c98966d29d173abb915d0068cf74f18909ebf /include
parent78875938e950fb28c90e0ee387cf4c19be7e1d00 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/framebuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libcamera/internal/framebuffer.h b/include/libcamera/internal/framebuffer.h
index 606aed2b..cd33c295 100644
--- a/include/libcamera/internal/framebuffer.h
+++ b/include/libcamera/internal/framebuffer.h
@@ -21,9 +21,11 @@ public:
Private();
void setRequest(Request *request) { request_ = request; }
+ bool isContiguous() const { return isContiguous_; }
private:
Request *request_;
+ bool isContiguous_;
};
} /* namespace libcamera */