Lines Matching refs:clamp_rgb
58 signed clamp_rgb(signed value) { in clamp_rgb() function
97 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb565_to_yv12()
100 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb565_to_yv12()
101 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb565_to_yv12()
134 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb888_to_yv12()
137 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb888_to_yv12()
138 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb888_to_yv12()
170 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb888_to_yuv420p()
173 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb888_to_yuv420p()
174 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb888_to_yuv420p()
213 signed b1 = clamp_rgb((tmp1 + u_b) / 256); in yv12_to_rgb565()
214 signed g1 = clamp_rgb((tmp1 + v_g + u_g) / 256); in yv12_to_rgb565()
215 signed r1 = clamp_rgb((tmp1 + v_r) / 256); in yv12_to_rgb565()
259 signed b1 = clamp_rgb((tmp1 + u_b) / 256); in yv12_to_rgb888()
260 signed g1 = clamp_rgb((tmp1 + v_g + u_g) / 256); in yv12_to_rgb888()
261 signed r1 = clamp_rgb((tmp1 + v_r) / 256); in yv12_to_rgb888()
304 signed b1 = clamp_rgb((tmp1 + u_b) / 256); in yuv420p_to_rgb888()
305 signed g1 = clamp_rgb((tmp1 + v_g + u_g) / 256); in yuv420p_to_rgb888()
306 signed r1 = clamp_rgb((tmp1 + v_r) / 256); in yuv420p_to_rgb888()