| /qemu/ui/ |
| A D | console-gl.c | 50 assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface))); in surface_gl_create_texture() 52 if (surface->texture) { in surface_gl_create_texture() 79 surface_stride(surface) / surface_bytes_per_pixel(surface)); in surface_gl_create_texture() 84 0, surface->glformat, surface->gltype, in surface_gl_create_texture() 90 0, surface->glformat, surface->gltype, in surface_gl_create_texture() 107 if (surface->texture) { in surface_gl_update_texture() 114 surface->glformat, surface->gltype, in surface_gl_update_texture() 134 if (!surface || !surface->texture) { in surface_gl_destroy_texture() 138 surface->texture = 0; in surface_gl_destroy_texture() 150 gw = surface_width(surface); in surface_gl_setup_viewport() [all …]
|
| A D | console.c | 504 return surface; in qemu_create_displaysurface_from() 515 return surface; in qemu_create_displaysurface_pixman() 539 return surface; in qemu_create_placeholder_surface() 544 if (surface == NULL) { in qemu_free_displaysurface() 549 g_free(surface); in qemu_free_displaysurface() 822 if (!surface) { in dpy_gfx_replace_surface() 837 con->surface = new_surface; in dpy_gfx_replace_surface() 1188 DisplaySurface *surface; in graphic_console_init() local 1221 DisplaySurface *surface; in graphic_console_close() local 1479 (surface && surface_is_allocated(surface) && in qemu_console_resize() [all …]
|
| A D | sdl2-gl.c | 42 if (scon->surface) { in sdl2_set_scanout_mode() 43 surface_gl_destroy_texture(scon->gls, scon->surface); in sdl2_set_scanout_mode() 44 surface_gl_create_texture(scon->gls, scon->surface); in sdl2_set_scanout_mode() 57 surface_gl_setup_viewport(scon->gls, scon->surface, ww, wh); in sdl2_gl_render_surface() 59 surface_gl_render_texture(scon->gls, scon->surface); in sdl2_gl_render_surface() 75 surface_gl_update_texture(scon->gls, scon->surface, x, y, w, h); in sdl2_gl_update() 83 DisplaySurface *old_surface = scon->surface; in sdl2_gl_switch() 88 surface_gl_destroy_texture(scon->gls, scon->surface); in sdl2_gl_switch() 90 scon->surface = new_surface; in sdl2_gl_switch() 108 surface_gl_create_texture(scon->gls, scon->surface); in sdl2_gl_switch() [all …]
|
| A D | spice-display.c | 327 memset(&surface, 0, sizeof(surface)); in qemu_spice_create_host_primary() 342 surface.stride = -surface.width * 4; in qemu_spice_create_host_primary() 344 surface.flags = 0; in qemu_spice_create_host_primary() 345 surface.type = 0; in qemu_spice_create_host_primary() 393 if (ssd->surface && in qemu_spice_display_switch() 394 surface_width(surface) == pixman_image_get_width(ssd->surface) && in qemu_spice_display_switch() 395 surface_height(surface) == pixman_image_get_height(ssd->surface) && in qemu_spice_display_switch() 396 surface_format(surface) == pixman_image_get_format(ssd->surface)) { in qemu_spice_display_switch() 403 ssd->ds = surface; in qemu_spice_display_switch() 420 if (ssd->surface) { in qemu_spice_display_switch() [all …]
|
| A D | sdl2-2d.c | 35 DisplaySurface *surf = scon->surface; in sdl2_2d_update() 63 DisplaySurface *old_surface = scon->surface; in sdl2_2d_switch() 68 scon->surface = new_surface; in sdl2_2d_switch() 92 switch (surface_format(scon->surface)) { in sdl2_2d_switch() 140 if (!scon->surface) { in sdl2_2d_redraw() 144 surface_width(scon->surface), in sdl2_2d_redraw() 145 surface_height(scon->surface)); in sdl2_2d_redraw()
|
| A D | gtk-gl-area.c | 31 if (vc->gfx.surface) { in gtk_gl_area_set_scanout_mode() 157 DisplaySurface *surface) in gd_gl_area_switch() argument 162 trace_gd_switch(vc->label, surface_width(surface), surface_height(surface)); in gd_gl_area_switch() 165 surface_width(vc->gfx.ds) == surface_width(surface) && in gd_gl_area_switch() 166 surface_height(vc->gfx.ds) == surface_height(surface)) { in gd_gl_area_switch() 173 surface_gl_create_texture(vc->gfx.gls, surface); in gd_gl_area_switch() 175 vc->gfx.ds = surface; in gd_gl_area_switch()
|
| A D | console-vc.c | 130 DisplaySurface *surface = qemu_console_surface(con); in qemu_console_fill_rect() local 135 assert(surface); in qemu_console_fill_rect() 146 assert(surface); in qemu_console_bitblt() 148 surface->image, NULL, surface->image, in qemu_console_bitblt() 156 DisplaySurface *surface = qemu_console_surface(s); in vga_putcharxy() local 159 assert(surface); in vga_putcharxy() 225 assert(surface); in console_refresh() 232 qemu_console_fill_rect(QEMU_CONSOLE(s), 0, 0, surface_width(surface), surface_height(surface), in console_refresh() 248 surface_width(surface), surface_height(surface)); in console_refresh() 385 w = surface_width(s->surface) / FONT_WIDTH; in text_console_resize() [all …]
|
| A D | gtk-egl.c | 38 if (vc->gfx.surface) { in gtk_egl_set_scanout_mode() 188 DisplaySurface *surface) in gd_egl_switch() argument 193 trace_gd_switch(vc->label, surface_width(surface), surface_height(surface)); in gd_egl_switch() 196 surface_width(vc->gfx.ds) == surface_width(surface) && in gd_egl_switch() 197 surface_height(vc->gfx.ds) == surface_height(surface)) { in gd_egl_switch() 204 vc->gfx.ds = surface; in gd_egl_switch()
|
| A D | sdl2.c | 83 if (!scon->surface) { in sdl2_window_create() 104 surface_width(scon->surface), in sdl2_window_create() 105 surface_height(scon->surface), in sdl2_window_create() 151 surface_width(scon->surface), in sdl2_window_resize() 152 surface_height(scon->surface)); in sdl2_window_resize() 325 x, 0, surface_width(scon->surface)); in sdl_send_mouse_event() 327 y, 0, surface_height(scon->surface)); in sdl_send_mouse_event() 443 sdl2_2d_switch(&scon->dcl, scon->surface); in handle_keydown() 458 height = (surface_height(scon->surface) * width) / in handle_keydown() 459 surface_width(scon->surface); in handle_keydown()
|
| A D | dbus.c | 65 dbus_create_texture(DisplayGLCtx *ctx, DisplaySurface *surface) in dbus_create_texture() argument 67 surface_gl_create_texture(ctx->gls, surface); in dbus_create_texture() 71 dbus_destroy_texture(DisplayGLCtx *ctx, DisplaySurface *surface) in dbus_destroy_texture() argument 73 surface_gl_destroy_texture(ctx->gls, surface); in dbus_destroy_texture() 77 dbus_update_texture(DisplayGLCtx *ctx, DisplaySurface *surface, in dbus_update_texture() argument 80 surface_gl_update_texture(ctx->gls, surface, x, y, w, h); in dbus_update_texture()
|
| A D | ui-qmp-cmds.c | 337 DisplaySurface *surface; in qmp_screendump() local 365 surface = qemu_console_surface(con); in qmp_screendump() 366 if (!surface) { in qmp_screendump() 370 image = pixman_image_ref(surface->image); in qmp_screendump()
|
| /qemu/hw/display/ |
| A D | jazz_led.c | 158 d1 = surface_data(surface); in jazz_led_update_display() 159 for (y = 0; y < surface_height(surface); y++) { in jazz_led_update_display() 161 d1 += surface_stride(surface); in jazz_led_update_display() 167 switch (surface_bits_per_pixel(surface)) { in jazz_led_update_display() 193 draw_horizontal_line(surface, 40, 10, 40, in jazz_led_update_display() 195 draw_vertical_line(surface, 10, 10, 40, in jazz_led_update_display() 197 draw_vertical_line(surface, 10, 40, 70, in jazz_led_update_display() 199 draw_horizontal_line(surface, 70, 10, 40, in jazz_led_update_display() 201 draw_vertical_line(surface, 40, 40, 70, in jazz_led_update_display() 203 draw_vertical_line(surface, 40, 10, 40, in jazz_led_update_display() [all …]
|
| A D | ramfb.c | 51 DisplaySurface *surface; in ramfb_create_display_surface() local 72 surface = qemu_create_displaysurface_from(width, height, in ramfb_create_display_surface() 74 pixman_image_set_destroy_function(surface->image, in ramfb_create_display_surface() 77 return surface; in ramfb_create_display_surface() 83 DisplaySurface *surface; in ramfb_fw_cfg_write() local 94 surface = ramfb_create_display_surface(width, height, in ramfb_fw_cfg_write() 96 if (!surface) { in ramfb_fw_cfg_write() 103 s->ds = surface; in ramfb_fw_cfg_write()
|
| A D | qxl-render.c | 29 DisplaySurface *surface = qemu_console_surface(qxl->vga.con); in qxl_blit() local 30 uint8_t *dst = surface_data(surface); in qxl_blit() 34 if (!surface_is_allocated(surface)) { in qxl_blit() 62 QXLSurfaceCreate *sc = &qxl->guest_primary.surface; in qxl_render_resize() 83 qxl->guest_primary.surface.format); in qxl_render_resize() 93 area->right = qxl->guest_primary.surface.width; in qxl_set_rect_to_surface() 95 area->bottom = qxl->guest_primary.surface.height; in qxl_set_rect_to_surface() 101 DisplaySurface *surface; in qxl_render_update_area_unlocked() local 127 surface = qemu_create_displaysurface_from in qxl_render_update_area_unlocked() 134 surface = qemu_create_displaysurface in qxl_render_update_area_unlocked() [all …]
|
| A D | xlnx_dp.c | 598 s->g_plane.surface in xlnx_dp_recreate_surface() 601 s->v_plane.surface in xlnx_dp_recreate_surface() 605 s->bout_plane.surface = in xlnx_dp_recreate_surface() 612 s->bout_plane.surface = NULL; in xlnx_dp_recreate_surface() 1161 if ((surface_width(s->g_plane.surface) in xlnx_dp_blend_surface() 1162 != surface_width(s->v_plane.surface)) || in xlnx_dp_blend_surface() 1163 (surface_height(s->g_plane.surface) in xlnx_dp_blend_surface() 1164 != surface_height(s->v_plane.surface))) { in xlnx_dp_blend_surface() 1174 pixman_image_set_filter(s->g_plane.surface->image, in xlnx_dp_blend_surface() 1302 DisplaySurface *surface; in xlnx_dp_realize() local [all …]
|
| A D | vmware_vga.c | 318 if (x + w > surface_width(surface)) { in vmsvga_verify_rect() 343 if (y + h > surface_height(surface)) { in vmsvga_verify_rect() 368 w = surface_width(surface); in vmsvga_update_rect() 369 h = surface_height(surface); in vmsvga_update_rect() 372 bypl = surface_stride(surface); in vmsvga_update_rect() 373 width = surface_bytes_per_pixel(surface) * w; in vmsvga_update_rect() 376 dst = surface_data(surface) + start; in vmsvga_update_rect() 425 int bypl = surface_stride(surface); in vmsvga_copy_rect() 426 int bypp = surface_bytes_per_pixel(surface); in vmsvga_copy_rect() 462 int bypl = surface_stride(surface); in vmsvga_fill_rect() [all …]
|
| A D | g364fb.c | 78 DisplaySurface *surface = qemu_console_surface(s->con); in g364fb_draw_graphic8() local 90 switch (surface_bits_per_pixel(surface)) { in g364fb_draw_graphic8() 109 surface_bits_per_pixel(surface)); in g364fb_draw_graphic8() 130 data_display = dd = surface_data(surface); in g364fb_draw_graphic8() 230 w = s->width * surface_bytes_per_pixel(surface); in g364fb_draw_blank() 231 d = surface_data(surface); in g364fb_draw_blank() 234 d += surface_stride(surface); in g364fb_draw_blank() 251 if (s->width != surface_width(surface) || in g364fb_update_display() 252 s->height != surface_height(surface)) { in g364fb_update_display() 350 start = ymin * surface_stride(surface); in g364_invalidate_cursor_position() [all …]
|
| A D | omap_lcdc.c | 202 DisplaySurface *surface; in omap_update_display() local 212 surface = qemu_console_surface(omap_lcd->con); in omap_update_display() 213 if (!surface_bits_per_pixel(surface)) { in omap_update_display() 263 if (width != surface_width(surface) || in omap_update_display() 264 omap_lcd->height != surface_height(surface)) { in omap_update_display() 267 surface = qemu_console_surface(omap_lcd->con); in omap_update_display() 292 if (!surface_bits_per_pixel(surface)) { in omap_update_display() 307 linesize = surface_stride(surface); in omap_update_display() 314 framebuffer_update_display(surface, &omap_lcd->fbsection, in omap_update_display()
|
| A D | xenfb.c | 236 DisplaySurface *surface; in xenfb_mouse_event() local 277 surface = qemu_console_surface(con); in xenfb_mouse_event() 280 scale = surface_width(surface) - 1; in xenfb_mouse_event() 283 scale = surface_height(surface) - 1; in xenfb_mouse_event() 637 int bpp = surface_bits_per_pixel(surface); in xenfb_guest_copy() 638 int linesize = surface_stride(surface); in xenfb_guest_copy() 639 uint8_t *data = surface_data(surface); in xenfb_guest_copy() 641 if (surface_is_allocated(surface)) { in xenfb_guest_copy() 724 DisplaySurface *surface; in xenfb_update() local 746 surface = qemu_create_displaysurface_from in xenfb_update() [all …]
|
| A D | vga.c | 1247 surface = qemu_console_surface(s->con); in vga_draw_text() 1289 dest = surface_data(surface); in vga_draw_text() 1290 linesize = surface_stride(surface); in vga_draw_text() 1638 && !surface_is_allocated(surface)) { in vga_draw_graphic() 1669 d = surface_data(surface); in vga_draw_graphic() 1670 linesize = surface_stride(surface); in vga_draw_graphic() 1710 if (surface_is_allocated(surface)) { in vga_draw_graphic() 1765 if (!surface_is_allocated(surface)) { in vga_draw_blank() 1773 d = surface_data(surface); in vga_draw_blank() 1776 d += surface_stride(surface); in vga_draw_blank() [all …]
|
| A D | macfb.c | 273 DisplaySurface *surface = qemu_console_surface(s->con); in macfb_draw_graphic() local 315 data_display = surface_data(surface) + y * surface_stride(surface); in macfb_draw_graphic() 461 DisplaySurface *surface = qemu_console_surface(s->con); in macfb_update_display() local 469 if (s->width != surface_width(surface) || in macfb_update_display() 470 s->height != surface_height(surface)) { in macfb_update_display() 647 DisplaySurface *surface; in macfb_common_realize() local 670 surface = qemu_console_surface(s->con); in macfb_common_realize() 672 if (surface_bits_per_pixel(surface) != 32) { in macfb_common_realize() 674 surface_bits_per_pixel(surface)); in macfb_common_realize()
|
| /qemu/include/ui/ |
| A D | surface.h | 39 void qemu_displaysurface_set_share_handle(DisplaySurface *surface, 44 void qemu_free_displaysurface(DisplaySurface *surface); 46 static inline int surface_is_allocated(DisplaySurface *surface) in surface_is_allocated() argument 48 return surface->flags & QEMU_ALLOCATED_FLAG; in surface_is_allocated() 51 static inline int surface_is_placeholder(DisplaySurface *surface) in surface_is_placeholder() argument 53 return surface->flags & QEMU_PLACEHOLDER_FLAG; in surface_is_placeholder()
|
| A D | console.h | 289 DisplaySurface *surface); 291 DisplaySurface *surface); 293 DisplaySurface *surface, 318 DisplaySurface *surface); 424 DisplaySurface *surface); 426 DisplaySurface *surface, 429 DisplaySurface *surface); 431 DisplaySurface *surface); 433 DisplaySurface *surface,
|
| A D | spice-display.h | 93 pixman_image_t *surface; member 167 DisplaySurface *surface); 176 QXLDevSurfaceCreate *surface,
|
| /qemu/hw/vfio/ |
| A D | display.c | 422 dpy->region.surface = NULL; in vfio_display_region_update() 436 dpy->region.surface = NULL; in vfio_display_region_update() 439 if (dpy->region.surface && in vfio_display_region_update() 440 (surface_width(dpy->region.surface) != plane.width || in vfio_display_region_update() 441 surface_height(dpy->region.surface) != plane.height || in vfio_display_region_update() 442 surface_format(dpy->region.surface) != format)) { in vfio_display_region_update() 444 dpy->region.surface = NULL; in vfio_display_region_update() 467 if (dpy->region.surface == NULL) { in vfio_display_region_update() 469 dpy->region.surface = qemu_create_displaysurface_from in vfio_display_region_update() 477 surface_width(dpy->region.surface), in vfio_display_region_update() [all …]
|