Searched refs:clamped_val (Results 1 – 2 of 2) 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()
2051 clamped_val = None2054 clamped_val = low2056 clamped_val = high2058 if clamped_val is not None:2059 new_val = (hex(clamped_val) if \2060 self.type == HEX else str(clamped_val))