Searched refs:clamped_val (Results 1 – 1 of 1) sorted by relevance
139 const float clamped_val = std::max(0.f, std::min(255.f, transformed_val)); in Quantize() local140 (*dst)[i] = static_cast<std::uint8_t>(std::round(clamped_val)); in Quantize()