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:
Laurent Pinchart 2021-09-02 03:04:44 +03:00
parent 78875938e9
commit 81a38f4373
2 changed files with 45 additions and 2 deletions

View file

@ -21,9 +21,11 @@ public:
Private();
void setRequest(Request *request) { request_ = request; }
bool isContiguous() const { return isContiguous_; }
private:
Request *request_;
bool isContiguous_;
};
} /* namespace libcamera */