Searched refs:clamp (Results 1 – 4 of 4) sorted by relevance
/hardware/google/camera/common/hal/utils/ |
D | utils.h | 82 *x = std::clamp(*x, static_cast<T>(0), 84 *y = std::clamp(*y, static_cast<T>(0), 88 *width = std::clamp(*width, static_cast<T>(1), 92 *height = std::clamp(*height, static_cast<T>(1),
|
/hardware/interfaces/automotive/evs/common/utils/default/ |
D | FormatConvert.cpp | 39 inline float Utils::clamp(float v, float min, float max) { in clamp() function in android::hardware::automotive::evs::common::Utils 59 unsigned char R = (unsigned char)clamp(Rf, 0.0f, 255.0f); in yuvToRgbx() 60 unsigned char G = (unsigned char)clamp(Gf, 0.0f, 255.0f); in yuvToRgbx() 61 unsigned char B = (unsigned char)clamp(Bf, 0.0f, 255.0f); in yuvToRgbx()
|
/hardware/interfaces/automotive/evs/common/utils/default/include/ |
D | FormatConvert.h | 86 static inline float clamp(float v, float min, float max);
|
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/ |
D | Sensor.cpp | 76 std::clamp(samplingPeriodNs, mSensorInfo.minDelay * 1000, mSensorInfo.maxDelay * 1000); in batch()
|