Lines Matching refs:width
17 static const uint32_t display_width = DT_PROP(DT_CHOSEN(zephyr_display), width);
19 uint8_t read_buffer[DT_PROP(DT_CHOSEN(zephyr_display), width) *
45 uint32_t image_pixel(const uint32_t *img, size_t width, int x, int y) in image_pixel() argument
47 const uint32_t *ptr = img + (width * y + x); in image_pixel()
57 .width = display_width, in verify_pixel()
66 bool verify_image(int cmp_x, int cmp_y, const uint32_t *img, size_t width, size_t height) in verify_image() argument
71 .width = display_width, in verify_image()
78 for (size_t x = 0; x < width; x++) { in verify_image()
80 uint32_t img_pix = image_pixel(img, width, x, y); in verify_image()
85 LOG_INF("disp@(0, %d) %p", y, read_buffer + (y * width / 8)); in verify_image()
86 LOG_HEXDUMP_INF(read_buffer + (y * width / 8), 64, ""); in verify_image()
87 LOG_INF("img@(0, %d) %p", y, (uint32_t *)img + (y * width)); in verify_image()
88 LOG_HEXDUMP_INF((uint32_t *)img + (y * width), 64, ""); in verify_image()
97 bool verify_color_inside_rect(int x, int y, size_t width, size_t height, uint32_t color) in verify_color_inside_rect() argument
102 .width = display_width, in verify_color_inside_rect()
109 for (size_t x_ = 0; x_ < width; x_++) { in verify_color_inside_rect()
121 bool verify_color_outside_rect(int x, int y, size_t width, size_t height, uint32_t color) in verify_color_outside_rect() argument
133 ret = verify_color_inside_rect(0, y + height, x + width, in verify_color_outside_rect()
140 if ((x + width) <= display_width) { in verify_color_outside_rect()
141 ret = verify_color_inside_rect(x + width, y, display_width - (x + width), in verify_color_outside_rect()
158 bool verify_image_and_bg(int x, int y, const uint32_t *img, size_t width, size_t height, in verify_image_and_bg() argument
163 ret = verify_image(x, y, img, width, height); in verify_image_and_bg()
168 ret = verify_color_outside_rect(x, y, width, height, color); in verify_image_and_bg()