• Home
  • Raw
  • Download

Lines Matching refs:ds

285     x = MIN(x, s->ds->width);  in vnc_update()
286 y = MIN(y, s->ds->height); in vnc_update()
287 w = MIN(x + w, s->ds->width) - x; in vnc_update()
288 h = MIN(h, s->ds->height); in vnc_update()
295 static void vnc_dpy_update(DisplayState *ds, int x, int y, int w, int h) in vnc_dpy_update() argument
297 VncDisplay *vd = ds->opaque; in vnc_dpy_update()
351 DisplayState *ds = vs->ds; in vnc_resize() local
355 if (!vs->guest.ds) in vnc_resize()
356 vs->guest.ds = qemu_mallocz(sizeof(*vs->guest.ds)); in vnc_resize()
357 if (ds_get_bytes_per_pixel(ds) != vs->guest.ds->pf.bytes_per_pixel) in vnc_resize()
358 console_color_init(ds); in vnc_resize()
360 size_changed = ds_get_width(ds) != vs->guest.ds->width || in vnc_resize()
361 ds_get_height(ds) != vs->guest.ds->height; in vnc_resize()
362 *(vs->guest.ds) = *(ds->surface); in vnc_resize()
368 vnc_framebuffer_update(vs, 0, 0, ds_get_width(ds), ds_get_height(ds), in vnc_resize()
376 if (!vs->server.ds) in vnc_resize()
377 vs->server.ds = qemu_mallocz(sizeof(*vs->server.ds)); in vnc_resize()
378 if (vs->server.ds->data) in vnc_resize()
379 qemu_free(vs->server.ds->data); in vnc_resize()
380 *(vs->server.ds) = *(ds->surface); in vnc_resize()
381 vs->server.ds->data = qemu_mallocz(vs->server.ds->linesize * in vnc_resize()
382 vs->server.ds->height); in vnc_resize()
386 static void vnc_dpy_resize(DisplayState *ds) in vnc_dpy_resize() argument
388 VncDisplay *vd = ds->opaque; in vnc_dpy_resize()
407 r = ((((v & vs->server.ds->pf.rmask) >> vs->server.ds->pf.rshift) << vs->clientds.pf.rbits) >> in vnc_convert_pixel()
408 vs->server.ds->pf.rbits); in vnc_convert_pixel()
409 g = ((((v & vs->server.ds->pf.gmask) >> vs->server.ds->pf.gshift) << vs->clientds.pf.gbits) >> in vnc_convert_pixel()
410 vs->server.ds->pf.gbits); in vnc_convert_pixel()
411 b = ((((v & vs->server.ds->pf.bmask) >> vs->server.ds->pf.bshift) << vs->clientds.pf.bbits) >> in vnc_convert_pixel()
412 vs->server.ds->pf.bbits); in vnc_convert_pixel()
450 if (vs->server.ds->pf.bytes_per_pixel == 4) { in vnc_write_pixels_generic()
458 } else if (vs->server.ds->pf.bytes_per_pixel == 2) { in vnc_write_pixels_generic()
466 } else if (vs->server.ds->pf.bytes_per_pixel == 1) { in vnc_write_pixels_generic()
484 row = vs->server.ds->data + y * ds_get_linesize(vs->ds) + x * ds_get_bytes_per_pixel(vs->ds); in send_framebuffer_update_raw()
486 vs->write_pixels(vs, row, w * ds_get_bytes_per_pixel(vs->ds)); in send_framebuffer_update_raw()
487 row += ds_get_linesize(vs->ds); in send_framebuffer_update_raw()
533 last_fg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel); in send_framebuffer_update_hextile()
534 last_bg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel); in send_framebuffer_update_hextile()
672 static void vnc_dpy_copy(DisplayState *ds, int src_x, int src_y, int dst_x, int dst_y, int w, int h) in vnc_dpy_copy() argument
674 VncDisplay *vd = ds->opaque; in vnc_dpy_copy()
699 for (h = 1; h < (s->ds->height - y); h++) { in find_and_clear_dirty_height()
736 vnc_set_bits(width_mask, (ds_get_width(vs->ds) / 16), VNC_DIRTY_WORDS); in vnc_update_client()
737 cmp_bytes = 16 * ds_get_bytes_per_pixel(vs->ds); in vnc_update_client()
738 guest_row = vs->guest.ds->data; in vnc_update_client()
739 server_row = vs->server.ds->data; in vnc_update_client()
740 for (y = 0; y < vs->guest.ds->height; y++) { in vnc_update_client()
749 for (x = 0; x < vs->guest.ds->width; in vnc_update_client()
761 guest_row += ds_get_linesize(vs->ds); in vnc_update_client()
762 server_row += ds_get_linesize(vs->ds); in vnc_update_client()
782 for (y = 0; y < vs->server.ds->height; y++) { in vnc_update_client()
785 for (x = 0; x < vs->server.ds->width / 16; x++) { in vnc_update_client()
924 qemu_free(vs->server.ds->data); in vnc_disconnect_finish()
925 qemu_free(vs->server.ds); in vnc_disconnect_finish()
926 qemu_free(vs->guest.ds); in vnc_disconnect_finish()
1249 ds_get_width(vs->ds), ds_get_height(vs->ds), in check_pointer_type_change()
1273 kbd_mouse_event(x * 0x7FFF / (ds_get_width(vs->ds) - 1), in pointer_event()
1274 y * 0x7FFF / (ds_get_height(vs->ds) - 1), in pointer_event()
1490 if (x_position > ds_get_width(vs->ds)) in framebuffer_update_request()
1491 x_position = ds_get_width(vs->ds); in framebuffer_update_request()
1492 if (y_position > ds_get_height(vs->ds)) in framebuffer_update_request()
1493 y_position = ds_get_height(vs->ds); in framebuffer_update_request()
1494 if (x_position + w >= ds_get_width(vs->ds)) in framebuffer_update_request()
1495 w = ds_get_width(vs->ds) - x_position; in framebuffer_update_request()
1496 if (y_position + h >= ds_get_height(vs->ds)) in framebuffer_update_request()
1497 h = ds_get_height(vs->ds) - y_position; in framebuffer_update_request()
1505 (ds_get_width(vs->ds) / 16), VNC_DIRTY_WORDS); in framebuffer_update_request()
1507 (ds_get_width(vs->ds) / 16), VNC_DIRTY_WORDS); in framebuffer_update_request()
1517 vnc_framebuffer_update(vs, 0, 0, ds_get_width(vs->ds), ds_get_height(vs->ds), in send_ext_key_event_ack()
1527 vnc_framebuffer_update(vs, 0, 0, ds_get_width(vs->ds), ds_get_height(vs->ds), in send_ext_audio_ack()
1594 (vs->ds->surface->flags & QEMU_BIG_ENDIAN_FLAG) && in set_pixel_conversion()
1595 !memcmp(&(vs->clientds.pf), &(vs->ds->surface->pf), sizeof(PixelFormat))) { in set_pixel_conversion()
1597 switch (vs->ds->surface->pf.bits_per_pixel) { in set_pixel_conversion()
1610 switch (vs->ds->surface->pf.bits_per_pixel) { in set_pixel_conversion()
1635 vs->clientds = *(vs->guest.ds); in set_pixel_format()
1662 vnc_write_u8(vs, vs->ds->surface->pf.bits_per_pixel); /* bits-per-pixel */ in pixel_format_message()
1663 vnc_write_u8(vs, vs->ds->surface->pf.depth); /* depth */ in pixel_format_message()
1671 vnc_write_u16(vs, vs->ds->surface->pf.rmax); /* red-max */ in pixel_format_message()
1672 vnc_write_u16(vs, vs->ds->surface->pf.gmax); /* green-max */ in pixel_format_message()
1673 vnc_write_u16(vs, vs->ds->surface->pf.bmax); /* blue-max */ in pixel_format_message()
1674 vnc_write_u8(vs, vs->ds->surface->pf.rshift); /* red-shift */ in pixel_format_message()
1675 vnc_write_u8(vs, vs->ds->surface->pf.gshift); /* green-shift */ in pixel_format_message()
1676 vnc_write_u8(vs, vs->ds->surface->pf.bshift); /* blue-shift */ in pixel_format_message()
1677 if (vs->ds->surface->pf.bits_per_pixel == 32) in pixel_format_message()
1679 else if (vs->ds->surface->pf.bits_per_pixel == 16) in pixel_format_message()
1681 else if (vs->ds->surface->pf.bits_per_pixel == 8) in pixel_format_message()
1683 vs->clientds = *(vs->ds->surface); in pixel_format_message()
1690 static void vnc_dpy_setdata(DisplayState *ds) in vnc_dpy_setdata() argument
1702 vnc_framebuffer_update(vs, 0, 0, ds_get_width(vs->ds), in vnc_colordepth()
1703 ds_get_height(vs->ds), VNC_ENCODING_WMVi); in vnc_colordepth()
1852 vnc_write_u16(vs, ds_get_width(vs->ds)); in protocol_client_init()
1853 vnc_write_u16(vs, ds_get_height(vs->ds)); in protocol_client_init()
2075 vs->ds = vd->ds; in vnc_connect()
2111 void vnc_display_init(DisplayState *ds) in vnc_display_init() argument
2117 ds->opaque = vs; in vnc_display_init()
2123 vs->ds = ds; in vnc_display_init()
2137 register_displaychangelistener(ds, dcl); in vnc_display_init()
2141 void vnc_display_close(DisplayState *ds) in vnc_display_close() argument
2143 VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display; in vnc_display_close()
2163 int vnc_display_password(DisplayState *ds, const char *password) in vnc_display_password() argument
2165 VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display; in vnc_display_password()
2179 char *vnc_display_local_addr(DisplayState *ds) in vnc_display_local_addr() argument
2181 VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display; in vnc_display_local_addr()
2186 int vnc_display_open(DisplayState *ds, const char *display) in vnc_display_open() argument
2188 VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display; in vnc_display_open()
2204 vnc_display_close(ds); in vnc_display_open()