Lines Matching refs:i

32     RK_U32 i, j, k = 0;  in osd3_gen_smpte_bar_argb()  local
53 for (i = 0; i < bar_width; i++) { in osd3_gen_smpte_bar_argb()
54 base[i * 4] = 0xff; in osd3_gen_smpte_bar_argb()
55 base[i * 4 + 1] = smpte_bar[k][0]; in osd3_gen_smpte_bar_argb()
56 base[i * 4 + 2] = smpte_bar[k][1]; in osd3_gen_smpte_bar_argb()
57 base[i * 4 + 3] = smpte_bar[k][2]; in osd3_gen_smpte_bar_argb()
83 RK_U32 i = 0; in translate_argb() local
103 for (i = 0; i < width; i++) { in translate_argb()
104 dst[j * width * 4 + i * 4 + 0] = src[j * width * 4 + i * 4 + 0]; in translate_argb()
105 dst[j * width * 4 + i * 4 + 1] = src[j * width * 4 + i * 4 + 3]; in translate_argb()
106 dst[j * width * 4 + i * 4 + 2] = src[j * width * 4 + i * 4 + 2]; in translate_argb()
107 dst[j * width * 4 + i * 4 + 3] = src[j * width * 4 + i * 4 + 1]; in translate_argb()
117 for (i = 0; i < width; i++) { in translate_argb()
118 dst[j * width * 4 + i * 4 + 0] = src[j * width * 4 + i * 4 + 3]; in translate_argb()
119 dst[j * width * 4 + i * 4 + 1] = src[j * width * 4 + i * 4 + 2]; in translate_argb()
120 dst[j * width * 4 + i * 4 + 2] = src[j * width * 4 + i * 4 + 1]; in translate_argb()
121 dst[j * width * 4 + i * 4 + 3] = src[j * width * 4 + i * 4 + 0]; in translate_argb()
130 for (i = 0; i < width; i++) { in translate_argb()
131 dst[j * width * 4 + i * 4 + 0] = src[j * width * 4 + i * 4 + 1]; in translate_argb()
132 dst[j * width * 4 + i * 4 + 1] = src[j * width * 4 + i * 4 + 2]; in translate_argb()
133 dst[j * width * 4 + i * 4 + 2] = src[j * width * 4 + i * 4 + 3]; in translate_argb()
134 dst[j * width * 4 + i * 4 + 3] = src[j * width * 4 + i * 4 + 0]; in translate_argb()
144 for (i = 0; i < width; i++) { in translate_argb()
145 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
146 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
147 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
148 tmp_u16[j * width + i] = ((tmp_r >> 3) << 10) + in translate_argb()
160 for (i = 0; i < width; i++) { in translate_argb()
161 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
162 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
163 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
164 tmp_u16[j * width + i] = ((tmp_b >> 3) << 10) + in translate_argb()
176 for (i = 0; i < width; i++) { in translate_argb()
177 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
178 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
179 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
180 tmp_u16[j * width + i] = ((tmp_r >> 3) << 11) + in translate_argb()
192 for (i = 0; i < width; i++) { in translate_argb()
193 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
194 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
195 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
196 tmp_u16[j * width + i] = ((tmp_b >> 3) << 11) + in translate_argb()
208 for (i = 0; i < width; i++) { in translate_argb()
209 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
210 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
211 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
212 tmp_u16[j * width + i] = ((tmp_r >> 4) << 8) + in translate_argb()
224 for (i = 0; i < width; i++) { in translate_argb()
225 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
226 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
227 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
228 tmp_u16[j * width + i] = ((tmp_b >> 4) << 8) + in translate_argb()
240 for (i = 0; i < width; i++) { in translate_argb()
241 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
242 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
243 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
244 tmp_u16[j * width + i] = ((tmp_r >> 4) << 12) + in translate_argb()
256 for (i = 0; i < width; i++) { in translate_argb()
257 tmp_r = src[j * width * 4 + i * 4 + 1]; in translate_argb()
258 tmp_g = src[j * width * 4 + i * 4 + 2]; in translate_argb()
259 tmp_b = src[j * width * 4 + i * 4 + 3]; in translate_argb()
260 tmp_u16[j * width + i] = ((tmp_b >> 4) << 12) + in translate_argb()
274 for (i = 0; i < width; i++) { in translate_argb()
276 dst[j * width / 4 + i / 4] = (dst[j * width / 4 + i / 4] << 2) | 0; in translate_argb()
278 dst[j * width / 4 + i / 4] = (dst[j * width / 4 + i / 4] << 2) | (1 << 1 | 1); in translate_argb()
290 for (i = 0; i < width; i++) { in translate_argb()
292 dst[j * width / 8 + i / 8] = (dst[j * width / 8 + i / 8] << 1) | 0; in translate_argb()
294 dst[j * width / 8 + i / 8] = (dst[j * width / 8 + i / 8] << 1) | 1; in translate_argb()
407 RK_U32 i; in osd3_test_case_max_reginon_num() local
409 for (i = 1; i < 8; i++) { in osd3_test_case_max_reginon_num()
410 region = &osd_data->region[i]; in osd3_test_case_max_reginon_num()
412 region->lt_x = (region_width + 16) * i; in osd3_test_case_max_reginon_num()