Lines Matching refs:pitch

102 	__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()
237 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in sdl_display_write()
238 __ASSERT(desc->pitch <= config->width, in sdl_display_write()
247 if (desc->width > desc->pitch || in sdl_display_write()
278 __ASSERT((desc->pitch * 4U * desc->height) <= desc->buf_size, "Read buffer is too small"); in sdl_display_read_argb8888()
280 memcpy(buf, read_buf, desc->pitch * 4U * desc->height); in sdl_display_read_argb8888()
291 __ASSERT((desc->pitch * 3U * desc->height) <= desc->buf_size, "Read buffer is too small"); in sdl_display_read_rgb888()
294 buf8 = ((uint8_t *)buf) + desc->pitch * 3U * h_idx; in sdl_display_read_rgb888()
297 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_rgb888()
317 __ASSERT((desc->pitch * 2U * desc->height) <= desc->buf_size, "Read buffer is too small"); in sdl_display_read_rgb565()
320 buf16 = (void *)(((uint8_t *)buf) + desc->pitch * 2U * h_idx); in sdl_display_read_rgb565()
323 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_rgb565()
342 __ASSERT((desc->pitch * 2U * desc->height) <= desc->buf_size, "Read buffer is too small"); in sdl_display_read_bgr565()
345 buf16 = (void *)(((uint8_t *)buf) + desc->pitch * 2U * h_idx); in sdl_display_read_bgr565()
348 pix_ptr = (const uint32_t *)read_buf + ((h_idx * desc->pitch) + w_idx); in sdl_display_read_bgr565()
369 __ASSERT((desc->pitch * desc->height) <= (desc->buf_size * 8U), "Read buffer is too small"); in sdl_display_read_mono()
373 buf8 = (void *)(((uint8_t *)buf) + desc->pitch * tile_idx); in sdl_display_read_mono()
380 ((tile_idx * 8 + h_idx) * desc->pitch + w_idx); in sdl_display_read_mono()
402 __ASSERT(desc->width <= desc->pitch, "Pitch is smaller than width"); in sdl_display_read()
404 memset(disp_data->read_buf, 0, desc->pitch * desc->height * 4); in sdl_display_read()
407 disp_data->read_buf, desc->pitch, disp_data->mutex, in sdl_display_read()