Lines Matching refs:clamp
53 in_out->s0 = table[clamp(convert_int(in_out->s0 * 255.0f), 0, 255)];
54 in_out->s1 = table[clamp(convert_int(in_out->s1 * 255.0f), 0, 255)];
55 in_out->s2 = table[clamp(convert_int(in_out->s2 * 255.0f), 0, 255)];
56 in_out->s3 = table[clamp(convert_int(in_out->s3 * 255.0f), 0, 255)];
57 in_out->s4 = table[clamp(convert_int(in_out->s4 * 255.0f), 0, 255)];
58 in_out->s5 = table[clamp(convert_int(in_out->s5 * 255.0f), 0, 255)];
59 in_out->s6 = table[clamp(convert_int(in_out->s6 * 255.0f), 0, 255)];
60 in_out->s7 = table[clamp(convert_int(in_out->s7 * 255.0f), 0, 255)];
140 convert_ushort (clamp (avg_y, 0.0f, 4095.0f)),
141 convert_ushort (clamp (result_r * 4096.0f, 0.0f, 4095.0f)),
142 convert_ushort (clamp (result_gr * 4096.0f, 0.0f, 4095.0f)),
143 convert_ushort (clamp (result_gb * 4096.0f, 0.0f, 4095.0f)),
144 convert_ushort (clamp (result_b * 4096.0f, 0.0f, 4095.0f)),