Lines Matching refs:x
173 int x, y; in screenshot_compare() local
177 for(x = 0; x < p.width; x++) { in screenshot_compare()
178 ptr_ref = &(row[x * 3]); in screenshot_compare()
194 fn_ref_full, mode, x, y, ref_px, act_px, tolerance); in screenshot_compare()
345 for(uint32_t x = 0; x < width; x++) { in write_png_file() local
346 row_pointers[y][x * 3 + 0] = line[x * 4 + 0]; in write_png_file()
347 row_pointers[y][x * 3 + 1] = line[x * 4 + 1]; in write_png_file()
348 row_pointers[y][x * 3 + 2] = line[x * 4 + 2]; in write_png_file()
390 uint32_t x; in buf_to_xrgb8888() local
391 for(x = 0; x < 800; x++) { in buf_to_xrgb8888()
392 const lv_color16_t * c16 = (const lv_color16_t *)&buf_in[x * 2]; in buf_to_xrgb8888()
394 buf_out[x * 4 + 3] = 0xff; in buf_to_xrgb8888()
395 buf_out[x * 4 + 2] = (c16->blue * 2106) >> 8; /*To make it rounded*/ in buf_to_xrgb8888()
396 buf_out[x * 4 + 1] = (c16->green * 1037) >> 8; in buf_to_xrgb8888()
397 buf_out[x * 4 + 0] = (c16->red * 2106) >> 8; in buf_to_xrgb8888()
407 uint32_t x; in buf_to_xrgb8888() local
408 for(x = 0; x < 800; x++) { in buf_to_xrgb8888()
409 buf_out[x * 4 + 3] = buf_in[x * 4 + 3]; in buf_to_xrgb8888()
410 buf_out[x * 4 + 2] = buf_in[x * 4 + 0]; in buf_to_xrgb8888()
411 buf_out[x * 4 + 1] = buf_in[x * 4 + 1]; in buf_to_xrgb8888()
412 buf_out[x * 4 + 0] = buf_in[x * 4 + 2]; in buf_to_xrgb8888()
422 uint32_t x; in buf_to_xrgb8888() local
423 for(x = 0; x < 800; x++) { in buf_to_xrgb8888()
424 buf_out[x * 4 + 3] = 0xff; in buf_to_xrgb8888()
425 buf_out[x * 4 + 2] = buf_in[x * 3 + 0]; in buf_to_xrgb8888()
426 buf_out[x * 4 + 1] = buf_in[x * 3 + 1]; in buf_to_xrgb8888()
427 buf_out[x * 4 + 0] = buf_in[x * 3 + 2]; in buf_to_xrgb8888()
437 uint32_t x; in buf_to_xrgb8888() local
438 for(x = 0; x < 800; x++) { in buf_to_xrgb8888()
439 buf_out[x * 4 + 3] = 0xff; in buf_to_xrgb8888()
440 buf_out[x * 4 + 2] = buf_in[x]; in buf_to_xrgb8888()
441 buf_out[x * 4 + 1] = buf_in[x]; in buf_to_xrgb8888()
442 buf_out[x * 4 + 0] = buf_in[x]; in buf_to_xrgb8888()
452 uint32_t x; in buf_to_xrgb8888() local
453 for(x = 0; x < 800; x++) { in buf_to_xrgb8888()
454 buf_out[x * 4 + 3] = buf_in[x * 2 + 1]; in buf_to_xrgb8888()
455 buf_out[x * 4 + 2] = buf_in[x * 2 + 0]; in buf_to_xrgb8888()
456 buf_out[x * 4 + 1] = buf_in[x * 2 + 0]; in buf_to_xrgb8888()
457 buf_out[x * 4 + 0] = buf_in[x * 2 + 0]; in buf_to_xrgb8888()
467 uint32_t x; in buf_to_xrgb8888() local
468 for(x = 0; x < 800; x++) { in buf_to_xrgb8888()
469 const uint8_t byte = buf_in[x / 8]; in buf_to_xrgb8888()
470 const uint8_t bit_pos = x % 8; in buf_to_xrgb8888()
473 buf_out[x * 4 + 3] = 0xff; in buf_to_xrgb8888()
474 buf_out[x * 4 + 2] = pixel ? 0xff : 0x00; in buf_to_xrgb8888()
475 buf_out[x * 4 + 1] = pixel ? 0xff : 0x00; in buf_to_xrgb8888()
476 buf_out[x * 4 + 0] = pixel ? 0xff : 0x00; in buf_to_xrgb8888()