Home
last modified time | relevance | path

Searched refs:pitch (Results 1 – 25 of 73) sorted by relevance

123

/Zephyr-latest/drivers/display/
Ddisplay_intel_multibootfb.c26 uint32_t pitch; member
75 dst += (y * data->pitch); in framebuf_write()
79 dst += data->pitch; in framebuf_write()
80 src += desc->pitch; in framebuf_write()
97 src += (y * data->pitch); in framebuf_read()
101 src += data->pitch; in framebuf_read()
102 dst += desc->pitch; in framebuf_read()
138 data->pitch = (info->fb_pitch / 4) + adj_x; in multiboot_framebuf_init()
143 buffer += adj_y * data->pitch; in multiboot_framebuf_init()
Ddisplay_sdl.c102 __ASSERT((desc->pitch * 4U * desc->height) <= desc->buf_size, in sdl_display_write_argb8888()
105 memcpy(disp_buf, buf, desc->pitch * 4U * desc->height); in sdl_display_write_argb8888()
116 __ASSERT((desc->pitch * 3U * desc->height) <= desc->buf_size, in sdl_display_write_rgb888()
122 ((h_idx * desc->pitch) + w_idx) * 3U; in sdl_display_write_rgb888()
141 __ASSERT((desc->pitch * 2U * desc->height) <= desc->buf_size, in sdl_display_write_rgb565()
147 ((h_idx * desc->pitch) + w_idx); in sdl_display_write_rgb565()
166 __ASSERT((desc->pitch * 2U * desc->height) <= desc->buf_size, in sdl_display_write_bgr565()
172 ((h_idx * desc->pitch) + w_idx); in sdl_display_write_bgr565()
194 __ASSERT((desc->pitch * desc->height) <= (desc->buf_size * 8U), in sdl_display_write_mono()
208 ((tile_idx * desc->pitch) + w_idx); in sdl_display_write_mono()
[all …]
Ddisplay_dummy.c41 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in dummy_display_write()
42 __ASSERT(desc->pitch <= config->width, in dummy_display_write()
46 __ASSERT(x + desc->pitch <= config->width, in dummy_display_write()
51 if (desc->width > desc->pitch || in dummy_display_write()
52 x + desc->pitch > config->width || in dummy_display_write()
Ddisplay_max7219.c154 __ASSERT((desc->pitch * desc->height) <= (desc->buf_size * 8U), "Input buffer too small"); in max7219_write()
155 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in max7219_write()
156 __ASSERT(desc->pitch <= max_width, "Pitch in descriptor is larger than screen size"); in max7219_write()
158 __ASSERT(x + desc->pitch <= max_width, in max7219_write()
163 if (desc->width > desc->pitch || (desc->pitch * desc->height) > (desc->buf_size * 8U)) { in max7219_write()
167 if ((x + desc->pitch) > max_width || (y + desc->height) > max_height) { in max7219_write()
174 const uint16_t to_skip = desc->pitch - desc->width; in max7219_write()
314 .pitch = MAX7219_DIGITS_PER_DEVICE, in max7219_init()
Ddisplay_ili9xxx.c139 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in ili9xxx_write()
140 __ASSERT((desc->pitch * data->bytes_per_pixel * desc->height) <= in ili9xxx_write()
151 if (desc->pitch > desc->width) { in ili9xxx_write()
155 mipi_desc.buf_size = desc->pitch * data->bytes_per_pixel; in ili9xxx_write()
165 mipi_desc.pitch = desc->width; in ili9xxx_write()
183 write_data_start += desc->pitch * data->bytes_per_pixel; in ili9xxx_write()
207 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in ili9xxx_read()
208 __ASSERT((desc->pitch * data->bytes_per_pixel * desc->height) <= in ili9xxx_read()
238 mipi_desc.pitch = 1; in ili9xxx_read()
Ddisplay_led_strip_matrix.c91 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in check_descriptor()
92 __ASSERT(desc->pitch <= config->width, "Pitch in descriptor is larger than screen size"); in check_descriptor()
94 __ASSERT(x + desc->pitch <= config->width, in check_descriptor()
99 if (desc->width > desc->pitch || x + desc->pitch > config->width || in check_descriptor()
141 buf_ptr += (desc->pitch - desc->width) * in led_strip_matrix_write()
186 buf_ptr += (desc->pitch - desc->width) * in led_strip_matrix_read()
Dssd1327.c181 if (desc->pitch < desc->width) { in ssd1327_write()
185 mipi_desc.pitch = desc->pitch; in ssd1327_write()
195 if (desc->pitch > desc->width) { in ssd1327_write()
207 LOG_DBG("x %u, y %u, pitch %u, width %u, height %u, buf_len %u", x, y, desc->pitch, in ssd1327_write()
Ddisplay_st7789v.c146 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in st7789v_write()
147 __ASSERT((desc->pitch * ST7789V_PIXEL_SIZE * desc->height) <= desc->buf_size, in st7789v_write()
154 if (desc->pitch > desc->width) { in st7789v_write()
158 mipi_desc.buf_size = desc->pitch * ST7789V_PIXEL_SIZE; in st7789v_write()
175 mipi_desc.pitch = desc->width; in st7789v_write()
184 write_data_start += (desc->pitch * ST7789V_PIXEL_SIZE); in st7789v_write()
Ddisplay_st7735r.c186 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in st7735r_write()
187 __ASSERT((desc->pitch * ST7735R_PIXEL_SIZE * desc->height) in st7735r_write()
197 if (desc->pitch > desc->width) { in st7735r_write()
201 mipi_desc.buf_size = desc->pitch * ST7735R_PIXEL_SIZE; in st7735r_write()
211 mipi_desc.pitch = desc->width; in st7735r_write()
227 write_data_start += (desc->pitch * ST7735R_PIXEL_SIZE); in st7735r_write()
238 write_data_start += (desc->pitch * ST7735R_PIXEL_SIZE); in st7735r_write()
Ddisplay_sdl_bottom.h33 const uint16_t y, void *renderer, void *buf, uint16_t pitch,
Dssd1322.c148 mipi_desc.pitch = mipi_desc.width; in ssd1322_write_pixels()
168 if (desc->pitch < desc->width) { in ssd1322_write()
179 if (desc->pitch > desc->width) { in ssd1322_write()
184 LOG_DBG("x %u, y %u, pitch %u, width %u, height %u, buf_len %u", x, y, desc->pitch, in ssd1322_write()
Ddisplay_gc9x01x.c519 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in gc9x01x_write()
520 __ASSERT((desc->pitch * data->bytes_per_pixel * desc->height) <= desc->buf_size, in gc9x01x_write()
529 if (desc->pitch > desc->width) { in gc9x01x_write()
543 mipi_desc.pitch = desc->width; in gc9x01x_write()
561 write_data_start += desc->pitch * data->bytes_per_pixel; in gc9x01x_write()
Ddisplay_renesas_ra.c67 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in ra_display_write()
68 __ASSERT((desc->pitch * BYTE_PER_PIXEL * desc->height) <= desc->buf_size, in ra_display_write()
72 desc->pitch == DISPLAY_HSIZE) { in ra_display_write()
100 src += (desc->pitch * data->pixel_size); in ra_display_write()
140 dst += (desc->pitch * data->pixel_size); in ra_display_read()
/Zephyr-latest/tests/drivers/video/api/src/
Dvideo_common.c39 fmt.pitch = 100 * 2; in ZTEST()
46 fmt.pitch = 1000 * 2; in ZTEST()
53 fmt.pitch = 1920 * 2; in ZTEST()
60 fmt.pitch = 1001 * 2; in ZTEST()
66 fmt.pitch = 1000 * 2; in ZTEST()
72 fmt.pitch = 1280 * 2; in ZTEST()
81 fmt.pitch = 1000 * 2; in ZTEST()
87 fmt.pitch = 1280 * 2; in ZTEST()
/Zephyr-latest/tests/drivers/display/display_read_write/src/
Dmain.c50 .pitch = width, in verify_bytes_of_area()
71 .pitch = width, in verify_background_color()
120 .pitch = display_width, in display_before()
150 .pitch = width, in ZTEST()
178 .pitch = width, in ZTEST()
184 .pitch = display_width, in ZTEST()
224 .pitch = width, in ZTEST()
230 .pitch = display_width, in ZTEST()
/Zephyr-latest/samples/drivers/video/capture/src/
Dmain.c75 .pitch = buf_desc.width, in video_display_frame()
76 .height = vbuf->bytesused / fmt.pitch, in video_display_frame()
143 fmt.pitch = fmt.width * 2; in main()
207 bsize = fmt.pitch * fmt.height; in main()
209 bsize = fmt.pitch * caps.min_line_count; in main()
/Zephyr-latest/samples/drivers/video/capture_to_lvgl/src/
Dmain.c79 fmt.pitch = fmt.width * 2; in main()
89 fmt.pitch); in main()
96 bsize = fmt.pitch * fmt.height; in main()
/Zephyr-latest/drivers/video/
Dvideo_emul_imager.c229 *(int64_t *)value = (int64_t)data->fmt.width * data->fmt.pitch * data->mode->fps; in emul_imager_get_ctrl()
351 memset(fb16, 0, fmt->pitch); in emul_imager_fill_framebuffer()
356 memcpy(data->framebuffer + fmt->pitch * i, data->framebuffer, fmt->pitch); in emul_imager_fill_framebuffer()
371 if (fmt->pitch * fmt->height > CONFIG_VIDEO_EMUL_IMAGER_FRAMEBUFFER_SIZE) { in emul_imager_set_fmt()
374 fmt->width, fmt->height, fmt->pitch * fmt->height); in emul_imager_set_fmt()
475 fmt.pitch = fmt.width * 2; in emul_imager_init()
Dvideo_stm32_dcmi.c45 uint32_t pitch; member
208 data->pitch = fmt->pitch; in video_stm32_dcmi_set_fmt()
238 fmt->pitch = data->pitch; in video_stm32_dcmi_get_fmt()
247 size_t buffer_size = data->pitch * data->height; in video_stm32_dcmi_stream_start()
296 const uint32_t buffer_size = data->pitch * data->height; in video_stm32_dcmi_enqueue()
/Zephyr-latest/tests/subsys/display/cfb/basic/src/
Dutils.c56 .pitch = display_width, in verify_pixel()
70 .pitch = display_width, in verify_image()
101 .pitch = display_width, in verify_color_inside_rect()
Dclear.c29 .pitch = display_width, in cfb_test_before()
Dinvert.c29 .pitch = display_width, in cfb_test_before()
/Zephyr-latest/modules/lvgl/
Dlvgl_display_16bit.c23 flush.desc.pitch = w; in lvgl_flush_cb_16bit()
Dlvgl_display_32bit.c23 flush.desc.pitch = w; in lvgl_flush_cb_32bit()
Dlvgl_display_24bit.c23 flush.desc.pitch = w; in lvgl_flush_cb_24bit()

123