Lines Matching refs:disp_data
55 struct sdl_display_data *disp_data = dev->data; in sdl_display_init() local
61 disp_data->current_pixel_format = in sdl_display_init()
82 use_accelerator, &disp_data->window, &disp_data->renderer, in sdl_display_init()
83 &disp_data->mutex, &disp_data->texture, in sdl_display_init()
84 &disp_data->read_texture, &disp_data->background_texture, in sdl_display_init()
94 disp_data->display_on = false; in sdl_display_init()
232 struct sdl_display_data *disp_data = dev->data; in sdl_display_write() local
253 if (disp_data->current_pixel_format == PIXEL_FORMAT_ARGB_8888) { in sdl_display_write()
254 sdl_display_write_argb8888(disp_data->buf, desc, buf); in sdl_display_write()
255 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_RGB_888) { in sdl_display_write()
256 sdl_display_write_rgb888(disp_data->buf, desc, buf); in sdl_display_write()
257 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_MONO10) { in sdl_display_write()
258 sdl_display_write_mono(disp_data->buf, desc, buf, true); in sdl_display_write()
259 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_MONO01) { in sdl_display_write()
260 sdl_display_write_mono(disp_data->buf, desc, buf, false); in sdl_display_write()
261 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_RGB_565) { in sdl_display_write()
262 sdl_display_write_rgb565(disp_data->buf, desc, buf); in sdl_display_write()
263 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_BGR_565) { in sdl_display_write()
264 sdl_display_write_bgr565(disp_data->buf, desc, buf); in sdl_display_write()
267 sdl_display_write_bottom(desc->height, desc->width, x, y, disp_data->renderer, in sdl_display_write()
268 disp_data->mutex, disp_data->texture, in sdl_display_write()
269 disp_data->background_texture, disp_data->buf, in sdl_display_write()
270 disp_data->display_on, desc->frame_incomplete); in sdl_display_write()
396 struct sdl_display_data *disp_data = dev->data; in sdl_display_read() local
404 memset(disp_data->read_buf, 0, desc->pitch * desc->height * 4); in sdl_display_read()
406 err = sdl_display_read_bottom(desc->height, desc->width, x, y, disp_data->renderer, in sdl_display_read()
407 disp_data->read_buf, desc->pitch, disp_data->mutex, in sdl_display_read()
408 disp_data->texture, disp_data->read_texture); in sdl_display_read()
414 if (disp_data->current_pixel_format == PIXEL_FORMAT_ARGB_8888) { in sdl_display_read()
415 sdl_display_read_argb8888(disp_data->read_buf, desc, buf); in sdl_display_read()
416 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_RGB_888) { in sdl_display_read()
417 sdl_display_read_rgb888(disp_data->read_buf, desc, buf); in sdl_display_read()
418 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_MONO10) { in sdl_display_read()
419 sdl_display_read_mono(disp_data->read_buf, desc, buf, true); in sdl_display_read()
420 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_MONO01) { in sdl_display_read()
421 sdl_display_read_mono(disp_data->read_buf, desc, buf, false); in sdl_display_read()
422 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_RGB_565) { in sdl_display_read()
423 sdl_display_read_rgb565(disp_data->read_buf, desc, buf); in sdl_display_read()
424 } else if (disp_data->current_pixel_format == PIXEL_FORMAT_BGR_565) { in sdl_display_read()
425 sdl_display_read_bgr565(disp_data->read_buf, desc, buf); in sdl_display_read()
433 struct sdl_display_data *disp_data = dev->data; in sdl_display_blanking_off() local
437 disp_data->display_on = true; in sdl_display_blanking_off()
439 sdl_display_blanking_off_bottom(disp_data->renderer, disp_data->texture, in sdl_display_blanking_off()
440 disp_data->background_texture); in sdl_display_blanking_off()
447 struct sdl_display_data *disp_data = dev->data; in sdl_display_blanking_on() local
451 disp_data->display_on = false; in sdl_display_blanking_on()
453 sdl_display_blanking_on_bottom(disp_data->renderer); in sdl_display_blanking_on()
461 struct sdl_display_data *disp_data = dev->data; in sdl_display_get_capabilities() local
472 capabilities->current_pixel_format = disp_data->current_pixel_format; in sdl_display_get_capabilities()
480 struct sdl_display_data *disp_data = dev->data; in sdl_display_set_pixel_format() local
489 disp_data->current_pixel_format = pixel_format; in sdl_display_set_pixel_format()
497 static void sdl_display_cleanup(struct sdl_display_data *disp_data) in sdl_display_cleanup() argument
499 sdl_display_cleanup_bottom(&disp_data->window, &disp_data->renderer, &disp_data->mutex, in sdl_display_cleanup()
500 &disp_data->texture, &disp_data->read_texture, in sdl_display_cleanup()
501 &disp_data->background_texture); in sdl_display_cleanup()