diff options
author | Umang Jain <email@uajain.com> | 2020-09-30 13:02:07 +0530 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-09-30 09:35:49 +0100 |
commit | b83ee94fe21d09f444454cc82e5586e7b196cf05 (patch) | |
tree | 844bad3bb8e333486a34f444f4976bd5c1dcaa20 | |
parent | 73bb12168fe74f5e557e8ee089209cc481d2c5ac (diff) |
Documentation: guides: pipeline-handler: Update clamp() namespace
Update the sample code using utils::clamp() to std::clamp().
Fixes: f2734ff3ab09 ("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>
-rw-r--r-- | Documentation/guides/pipeline-handler.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/guides/pipeline-handler.rst b/Documentation/guides/pipeline-handler.rst index 746e2066..71ef2050 100644 --- a/Documentation/guides/pipeline-handler.rst +++ b/Documentation/guides/pipeline-handler.rst @@ -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) |