libcamera: v4l2_videodevice: Extract exportDmabufFd()
The part in createPlane() that exports a dma buffer from a video device will be used directly by the FrameBuffer interface. Break it out to a separate function. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -26,6 +26,7 @@ class Buffer;
|
||||
class BufferMemory;
|
||||
class BufferPool;
|
||||
class EventNotifier;
|
||||
class FileDescriptor;
|
||||
class MediaDevice;
|
||||
class MediaEntity;
|
||||
|
||||
@@ -179,6 +180,7 @@ private:
|
||||
int requestBuffers(unsigned int count);
|
||||
int createPlane(BufferMemory *buffer, unsigned int index,
|
||||
unsigned int plane, unsigned int length);
|
||||
FileDescriptor exportDmabufFd(unsigned int index, unsigned int plane);
|
||||
|
||||
Buffer *dequeueBuffer();
|
||||
void bufferAvailable(EventNotifier *notifier);
|
||||
|
||||
Reference in New Issue
Block a user