mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
libcamera: controls: Add a function to merge two control lists
Add a new ControlList::merge() function to merge two control lists by copying in the values in the list passed as parameters. This can be used by pipeline handlers to merge metadata they populate with metadata received from an IPA. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [reimplement the function by not using std::unordered_map::merge()] Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
332870ea2b
commit
a5c881645a
2 changed files with 32 additions and 0 deletions
|
@ -363,7 +363,9 @@ public:
|
|||
|
||||
bool empty() const { return controls_.empty(); }
|
||||
std::size_t size() const { return controls_.size(); }
|
||||
|
||||
void clear() { controls_.clear(); }
|
||||
void merge(const ControlList &source);
|
||||
|
||||
bool contains(const ControlId &id) const;
|
||||
bool contains(unsigned int id) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue