libcamera: v4l2_videodevice: Pass memory type to reqbufs()

To prepare for the rework of buffer export, pass the memory type
explicitly to the V4L2VideoDevice::reqbufs() function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2020-03-14 16:14:27 +02:00
parent 46011623bc
commit 92830a1d00
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ private:
int setSelection(unsigned int target, Rectangle *rect);
int requestBuffers(unsigned int count);
int requestBuffers(unsigned int count, enum v4l2_memory memoryType);
std::unique_ptr<FrameBuffer> createBuffer(const struct v4l2_buffer &buf);
FileDescriptor exportDmabufFd(unsigned int index, unsigned int plane);