Lines Matching refs:G
115 uint8_t G = (g * 259 + 33) >> 6; in rgb565_to_yv12() local
119 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb565_to_yv12()
122 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb565_to_yv12()
123 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb565_to_yv12()
166 uint8_t G = rgb_ptr[i*rgb_stride+1]; in rgb888_to_yv12() local
171 …yv12_y[i] = clamp_rgb(1.0 * ((0.25678823529411765 * R) + (0.5041294117647058 * G) + (0.09790588235… in rgb888_to_yv12()
174 …] = clamp_rgb((1/0.96) * (-(0.1482235294117647 * R) - (0.2909921568627451 * G) + (0.43921568627450… in rgb888_to_yv12()
175 …ount] = clamp_rgb((1.0)* ((0.4392156862745098 * R) - (0.36778823529411764 * G) - (0.07142745098039… in rgb888_to_yv12()
218 uint8_t G = rgb_ptr[i*rgb_stride+1]; in rgb888_to_yuv420p() local
222 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb888_to_yuv420p()
225 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb888_to_yuv420p()
226 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb888_to_yuv420p()