diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-10-14 02:18:34 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-10-15 22:33:34 +0300 |
commit | ba9a62c836a84d2dbcdd2543f849c87b9278c9b0 (patch) | |
tree | d59b8134c04f904b6ff9f72d34a470c75db7e575 /src/libcamera/controls.cpp | |
parent | 319d6ae8e3ad1a47a674e85015de9ea811e84564 (diff) |
libcamera: v4l2_controls: Remove V4L2ControlList class
The V4L2ControlList class only provides a convenience constructor for
the ControlList, which can easily be moved to the ControlList class and
may benefit it later (to construct a ControlList from controls supported
by a camera). Move the constructor and remove V4L2ControlList.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/controls.cpp')
-rw-r--r-- | src/libcamera/controls.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp index bf7634aa..93ad2fc6 100644 --- a/src/libcamera/controls.cpp +++ b/src/libcamera/controls.cpp @@ -562,6 +562,16 @@ ControlList::ControlList(const ControlIdMap &idmap, ControlValidator *validator) } /** + * \brief Construct a ControlList with the idmap of a control info map + * \param[in] info The ControlInfoMap for the control list target object + * \param[in] validator The validator (may be null) + */ +ControlList::ControlList(const ControlInfoMap &info, ControlValidator *validator) + : validator_(validator), idmap_(&info.idmap()) +{ +} + +/** * \typedef ControlList::iterator * \brief Iterator for the controls contained within the list */ |