summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-06-10 17:25:35 +0900
committerJacopo Mondi <jacopo@jmondi.org>2021-06-14 14:10:48 +0200
commitc520531884ec8f5744a245d7bf49b1723641c1d0 (patch)
treeb8b3680ef712f8cc5ce078e35b180646c2d60ebd /include
parentb8302cd44ae235d18d6cf645ac1ed928a8f68c96 (diff)
libcamera: V4L2Device: Support v4l2 menu control
This adds a support of v4l2 menu. The control info for v4l2 menu contains indices without names and 64bit values of querymenu. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/v4l2_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libcamera/internal/v4l2_device.h b/include/libcamera/internal/v4l2_device.h
index b82e2a14..c318e976 100644
--- a/include/libcamera/internal/v4l2_device.h
+++ b/include/libcamera/internal/v4l2_device.h
@@ -56,6 +56,11 @@ protected:
int fd() const { return fd_; }
private:
+ static ControlType v4l2CtrlType(uint32_t ctrlType);
+ static std::unique_ptr<ControlId> v4l2ControlId(const v4l2_query_ext_ctrl &ctrl);
+ ControlInfo v4l2ControlInfo(const v4l2_query_ext_ctrl &ctrl);
+ ControlInfo v4l2MenuControlInfo(const v4l2_query_ext_ctrl &ctrl);
+
void listControls();
void updateControls(ControlList *ctrls,
Span<const v4l2_ext_control> v4l2Ctrls);