libcamera: v4l2_device: Add support for META_OUTPUT
Add support for output devices that expose the META_OUTPUT capabilities. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -116,6 +116,12 @@ LOG_DEFINE_CATEGORY(V4L2)
|
||||
* \return True if the device can capture image meta-data
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn V4L2Capability::isMetaOutput()
|
||||
* \brief Identify if the device outputs image meta-data
|
||||
* \return True if the device can output image meta-data
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn V4L2Capability::hasStreaming()
|
||||
* \brief Determine if the device can perform Streaming I/O
|
||||
@@ -348,6 +354,9 @@ int V4L2Device::open()
|
||||
} else if (caps_.isMetaCapture()) {
|
||||
fdEvent_ = new EventNotifier(fd_, EventNotifier::Read);
|
||||
bufferType_ = V4L2_BUF_TYPE_META_CAPTURE;
|
||||
} else if (caps_.isMetaOutput()) {
|
||||
fdEvent_ = new EventNotifier(fd_, EventNotifier::Write);
|
||||
bufferType_ = V4L2_BUF_TYPE_META_OUTPUT;
|
||||
} else {
|
||||
LOG(V4L2, Error) << "Device is not a supported type";
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user