diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-01-22 18:51:15 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-01-23 14:33:34 +0000 |
commit | e5163f54d47c4f2c167eba5e40f8df62229e8ad5 (patch) | |
tree | 2914553e57658d03f064c523ccfe95566accb55a /src/libcamera/v4l2_device.cpp | |
parent | a22dcaaa786de67786eeaeb47598ed76339249ad (diff) |
libcamera: v4l2device: Obtain device capabilities
The capabilities structure from the kernel can return capabilities of the
driver, or potentially more specific device capabilities.
Handle this with an inline function 'device_caps()' to return the device
specific capabilities when available, or fall back to the driver capabilities
otherwise.
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera/v4l2_device.cpp')
-rw-r--r-- | src/libcamera/v4l2_device.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp index 2b17fa1e..0ce2b187 100644 --- a/src/libcamera/v4l2_device.cpp +++ b/src/libcamera/v4l2_device.cpp @@ -50,6 +50,13 @@ LOG_DEFINE_CATEGORY(V4L2) */ /** + * \fn unsigned int V4L2Capability::device_caps() + * \brief Retrieve the capabilities of the device + * \return The device specific capabilities if V4L2_CAP_DEVICE_CAPS is set or + * driver capabilities otherwise + */ + +/** * \fn bool V4L2Capability::isCapture() * \brief Identify if the device is capable of capturing video * \return True if the device can capture video frames |