.. _program_listing_file_src_clamp.hpp: Program Listing for File clamp.hpp ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/clamp.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include "types.hpp" #include template typename ControlTypeMap::type min(const libcamera::ControlValue &value); template typename ControlTypeMap::type max(const libcamera::ControlValue &value); libcamera::ControlValue clamp(const libcamera::ControlValue &value, const libcamera::ControlValue &min, const libcamera::ControlValue &max); bool operator<(const libcamera::ControlValue &a, const libcamera::ControlValue &b); bool operator>(const libcamera::ControlValue &a, const libcamera::ControlValue &b);