mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 00:45:07 +03:00
ipa: raspberrypi: Add a Merge method to RPiController::Metadata
Add a new Merge method to the Metadata class. This will merge all unique key/value pairs from a source metadata map to the destination map. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
2bbd1e4766
commit
a80db5a723
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,12 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
void Merge(Metadata &other)
|
||||
{
|
||||
std::scoped_lock lock(mutex_, other.mutex_);
|
||||
data_.merge(other.data_);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T *GetLocked(std::string const &tag)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue