Lines Matching refs:i
108 for (int i = left; i <= right; ++i) { in rgb565_to_yv12() local
109 uint8_t r = ((rgb_ptr[i]) >> 11) & 0x01f; in rgb565_to_yv12()
110 uint8_t g = ((rgb_ptr[i]) >> 5) & 0x03f; in rgb565_to_yv12()
111 uint8_t b = (rgb_ptr[i]) & 0x01f; in rgb565_to_yv12()
119 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb565_to_yv12()
120 bool ieven = (i & 1) == 0; 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()
164 for (int i = left; i <= right; ++i) { in rgb888_to_yv12() local
165 uint8_t R = rgb_ptr[i*rgb_stride]; in rgb888_to_yv12()
166 uint8_t G = rgb_ptr[i*rgb_stride+1]; in rgb888_to_yv12()
167 uint8_t B = rgb_ptr[i*rgb_stride+2]; in rgb888_to_yv12()
171 …yv12_y[i] = clamp_rgb(1.0 * ((0.25678823529411765 * R) + (0.5041294117647058 * G) + (0.09790588235… in rgb888_to_yv12()
172 bool ieven = (i & 1) == 0; in rgb888_to_yv12()
216 for (int i = left; i <= right; ++i) { in rgb888_to_yuv420p() local
217 uint8_t R = rgb_ptr[i*rgb_stride]; in rgb888_to_yuv420p()
218 uint8_t G = rgb_ptr[i*rgb_stride+1]; in rgb888_to_yuv420p()
219 uint8_t B = rgb_ptr[i*rgb_stride+2]; in rgb888_to_yuv420p()
222 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb888_to_yuv420p()
223 bool ieven = (i & 1) == 0; 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()
253 for (int i = left; i <= right; ++i) { in yv12_to_rgb565() local
256 signed y1 = (signed)yv12_y[i] - 16; in yv12_to_rgb565()
257 signed u = (signed)yv12_u[i / 2] - 128; in yv12_to_rgb565()
258 signed v = (signed)yv12_v[i / 2] - 128; in yv12_to_rgb565()
272 rgb_ptr[i-left] = rgb1; in yv12_to_rgb565()
298 for (int i = left; i <= right; ++i) { in yv12_to_rgb888() local
302 signed y1 = (signed)yv12_y[i] - 16; in yv12_to_rgb888()
303 signed u = (signed)yv12_u[i / 2] - 128; in yv12_to_rgb888()
304 signed v = (signed)yv12_v[i / 2] - 128; in yv12_to_rgb888()
310 rgb_ptr[(i-left)*rgb_stride] = r1; in yv12_to_rgb888()
311 rgb_ptr[(i-left)*rgb_stride+1] = g1; in yv12_to_rgb888()
312 rgb_ptr[(i-left)*rgb_stride+2] = b1; in yv12_to_rgb888()
337 for (int i = left; i <= right; ++i) { in yuv420p_to_rgb888() local
340 signed y1 = (signed)yv12_y[i] - 16; in yuv420p_to_rgb888()
341 signed u = (signed)yv12_u[i / 2] - 128; in yuv420p_to_rgb888()
342 signed v = (signed)yv12_v[i / 2] - 128; in yuv420p_to_rgb888()
354 rgb_ptr[(i-left)*rgb_stride] = r1; in yuv420p_to_rgb888()
355 rgb_ptr[(i-left)*rgb_stride+1] = g1; in yuv420p_to_rgb888()
356 rgb_ptr[(i-left)*rgb_stride+2] = b1; in yuv420p_to_rgb888()