Documentation: guides: pipeline-handler: Update clamp() namespace
Update the sample code using utils::clamp() to std::clamp().
Fixes: f2734ff3ab
("libcamera: Replace utils::clamp() with std::clamp()")
Signed-off-by: Umang Jain <email@uajain.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
73bb12168f
commit
b83ee94fe2
1 changed files with 1 additions and 1 deletions
|
@ -1289,7 +1289,7 @@ range definitions and their corresponding values on the device before being set.
|
|||
}
|
||||
|
||||
int32_t value = lroundf(it.second.get<float>() * 128 + offset);
|
||||
controls.set(cid, utils::clamp(value, 0, 255));
|
||||
controls.set(cid, std::clamp(value, 0, 255));
|
||||
}
|
||||
|
||||
for (const auto &ctrl : controls)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue