Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 94) sorted by relevance

1234

/qemu/hw/display/
H A Dramfb.c27 uint32_t height; member
35 uint32_t width, height; member
47 static DisplaySurface *ramfb_create_display_surface(int width, int height, in ramfb_create_display_surface() argument
56 height < 16 || height > VBE_DISPI_MAX_YRES || in ramfb_create_display_surface()
65 mapsize = size = stride * (height - 1) + linesize; in ramfb_create_display_surface()
72 surface = qemu_create_displaysurface_from(width, height, in ramfb_create_display_surface()
84 uint32_t fourcc, format, width, height; in ramfb_fw_cfg_write() local
88 height = be32_to_cpu(s->cfg.height); in ramfb_fw_cfg_write()
94 surface = ramfb_create_display_surface(width, height, in ramfb_fw_cfg_write()
101 s->height = height; in ramfb_fw_cfg_write()
[all …]
H A Dartist.c34 unsigned int height; member
52 uint16_t height; member
227 if (starty + height > buf->height) { in artist_invalidate_lines()
228 height = buf->height - starty; in artist_invalidate_lines()
358 *y = s->height; in artist_get_cursor_pos()
400 if (height > buf->height) { in block_move()
401 height = buf->height; in block_move()
502 (y1 >= buf->height && y2 >= buf->height)) { in draw_line()
1368 buf->height = height; in artist_create_buffer()
1382 s->height = MIN(s->height, 2048); in artist_realizefn()
[all …]
H A Dvirtio-gpu.c282 res->height = c2d.height; in virtio_gpu_resource_create_2d()
472 t2d.r.height > res->height || in virtio_gpu_transfer_to_host_2d()
474 t2d.r.y + t2d.r.height > res->height) { in virtio_gpu_transfer_to_host_2d()
563 rf.r.height > res->height || in virtio_gpu_resource_flush()
565 rf.r.y + rf.r.height > res->height)) { in virtio_gpu_resource_flush()
620 scanout->height = r->height; in virtio_gpu_update_scanout()
641 r->height > fb->height || in virtio_gpu_do_set_scanout()
643 r->y + r->height > fb->height) { in virtio_gpu_do_set_scanout()
676 scanout->height != r->height) { in virtio_gpu_do_set_scanout()
787 fb.height = ss.height; in virtio_gpu_set_scanout_blob()
[all …]
H A Dqxl-render.c43 src += (qxl->guest_primary.surface.height - rect->top - 1) * in qxl_blit()
95 area->bottom = qxl->guest_primary.surface.height; in qxl_set_rect_to_surface()
103 int height = qxl->guest_head0_height ?: qxl->guest_primary.surface.height; in qxl_render_update_area_unlocked() local
112 * height); in qxl_render_update_area_unlocked()
120 height, in qxl_render_update_area_unlocked()
129 height, in qxl_render_update_area_unlocked()
136 height); in qxl_render_update_area_unlocked()
153 qxl->dirty[i].bottom > height) { in qxl_render_update_area_unlocked()
256 cursor->header.width, cursor->header.height); in qxl_cursor()
265 size = 2 * cursor_get_mono_bpl(c) * c->height; in qxl_cursor()
[all …]
H A Dg364fb.c48 uint32_t width, height; /* in pixels */ member
118 ymin = s->height; in g364fb_draw_graphic8()
133 while (y < s->height) { in g364fb_draw_graphic8()
178 if (y == s->height) { in g364fb_draw_graphic8()
198 ymin = s->height; in g364fb_draw_graphic8()
232 for (i = 0; i < s->height; i++) { in g364fb_draw_blank()
248 if (s->width == 0 || s->height == 0) in g364fb_update_display()
287 s->width = s->height = 0; in g364fb_reset()
316 val = s->height * 2; in g364fb_ctrl_read()
349 ymax = MIN(s->height, ymin + 64); in g364_invalidate_cursor_position()
[all …]
H A Dvga.c1172 height = 100; in vga_get_text_resolution()
1177 height = (height + 1) / cheight; in vga_get_text_resolution()
1181 *pheight = height; in vga_get_text_resolution()
1233 if ((height * width) <= 1) { in vga_draw_text()
1251 s->last_height = height; in vga_draw_text()
1429 int width, height; in vga_get_resolution() local
1439 height = (height + 1); in vga_get_resolution()
1442 *pheight = height; in vga_get_resolution()
1628 s->last_height = height; in vga_draw_graphic()
1938 height = 100; in vga_update_text()
[all …]
H A Domap_lcdc.c39 int height; member
204 int size, height, first, last; in omap_update_display() local
264 omap_lcd->height != surface_height(surface)) { in omap_update_display()
266 omap_lcd->width, omap_lcd->height); in omap_update_display()
297 height = omap_lcd->height; in omap_update_display()
302 height = (omap_lcd->subpanel >> 16) & 0x3ff; in omap_update_display()
311 height, step); in omap_update_display()
315 width, height, in omap_update_display()
393 return (s->timing[1] << 10) | (s->height - 1); in omap_lcdc_read()
436 s->height = (value & 0x3ff) + 1; in omap_lcdc_write()
[all …]
H A Dvirtio-gpu-virgl.c41 c2d.width, c2d.height); in virgl_cmd_create_resource_2d()
48 args.height = c2d.height; in virgl_cmd_create_resource_2d()
65 c3d.width, c3d.height, c3d.depth); in virgl_cmd_create_resource_3d()
72 args.height = c3d.height; in virgl_cmd_create_resource_3d()
125 int width, int height) in virtio_gpu_rect_update() argument
131 dpy_gl_update(g->parent_obj.scanout[idx].con, x, y, width, height); in virtio_gpu_rect_update()
170 if (ss.resource_id && ss.r.width && ss.r.height) { in virgl_cmd_set_scanout()
192 ss.r.width, ss.r.height); in virgl_cmd_set_scanout()
197 info.width, info.height, in virgl_cmd_set_scanout()
198 ss.r.x, ss.r.y, ss.r.width, ss.r.height, in virgl_cmd_set_scanout()
[all …]
H A Dvirtio-gpu-base.c33 g->scanout[i].height = 0; in virtio_gpu_base_reset()
50 dpy_info->pmodes[i].r.height = cpu_to_le32(g->req_state[i].height); in virtio_gpu_base_fill_display_info()
63 .prefy = g->req_state[scanout].height, in virtio_gpu_base_generate_edid()
101 g->req_state[idx].height = info->height; in virtio_gpu_ui_info()
105 if (info->width && info->height) { in virtio_gpu_ui_info()
208 g->req_state[0].height = g->conf.yres; in virtio_gpu_base_device_realize()
H A Dvirtio-gpu-gl.c32 uint32_t width, height; in virtio_gpu_gl_update_cursor_data() local
35 data = virgl_renderer_get_cursor_data(resource_id, &width, &height); in virtio_gpu_gl_update_cursor_data()
41 height != s->current_cursor->height) { in virtio_gpu_gl_update_cursor_data()
46 pixels = s->current_cursor->width * s->current_cursor->height; in virtio_gpu_gl_update_cursor_data()
H A Dcg3.c84 uint16_t width, height, depth; member
96 unsigned int width, height; in cg3_update_display() local
104 height = s->height; in cg3_update_display()
116 for (y = 0; y < height; y++) { in cg3_update_display()
320 qemu_console_resize(s->con, s->width, s->height); in cg3_realizefn()
338 VMSTATE_UINT16(height, CG3State),
367 DEFINE_PROP_UINT16("height", CG3State, height, -1),
/qemu/ui/
H A Dcursor.c12 unsigned int width, height, colors, chars; in cursor_parse_xpm() local
48 c = cursor_alloc(width, height); in cursor_parse_xpm()
66 for (y = 0; y < c->height; y++) { in cursor_print_ascii_art()
99 if (width > 512 || height > 512) { in cursor_alloc()
105 c->height = height; in cursor_alloc()
147 for (y = 0; y < c->height; y++) { in cursor_set_mono()
180 for (y = 0; y < c->height; y++) { in cursor_set_mono()
207 memset(image, 0, bpl * c->height); in cursor_get_mono_image()
208 for (y = 0; y < c->height; y++) { in cursor_get_mono_image()
231 memset(mask, 0, bpl * c->height); in cursor_get_mono_mask()
[all …]
H A Degl-helpers.c94 fb->height = 0; in egl_fb_destroy()
102 fb->height = height; in egl_fb_setup_default()
112 fb->height = height; in egl_fb_setup_for_tex()
142 GLuint h = src->height; in egl_fb_blit()
146 glViewport(0, 0, dst->width, dst->height); in egl_fb_blit()
156 h = (y1 + h) > src->height ? src->height - y1 : h; in egl_fb_blit()
163 0, 0, dst->width, dst->height, in egl_fb_blit()
178 assert(surface_height(dst) == src->height); in egl_fb_read_rect()
192 glViewport(0, 0, dst->width, dst->height); in egl_texture_blit()
203 int h = scale_y * src->height; in egl_texture_blend()
[all …]
H A Dconsole-vc.c51 int height; member
132 .x = posx, .y = posy, .width = width, .height = height in qemu_console_fill_rect()
206 if (y < s->height) { in console_show_cursor()
393 t->height = h; in text_console_resize()
423 if (s->y >= s->height) { in vc_put_lf()
574 if (y2 < s->height) { in vc_update_xy()
635 if (y >= s->height) { in vc_set_cursor()
636 y = s->height - 1; in vc_set_cursor()
975 unsigned height = 0; in vc_chr_open() local
984 height = vc->height; in vc_chr_open()
[all …]
H A Dvnc-enc-zywrle.h336 static inline void filter_wavelet_square(int *buf, int width, int height, in filter_wavelet_square() argument
355 for (y = 0; y < height / s; y++) { in filter_wavelet_square()
412 static inline void filter_wavelet_square(int *buf, int width, int height, in filter_wavelet_square() argument
431 for (y = 0; y < height / s; y++) { in filter_wavelet_square()
444 static inline void wavelet(int *buf, int width, int height, int level) in wavelet() argument
452 end = buf + height * width; in wavelet()
462 wavelet_level(top, height, l, width); in wavelet()
465 filter_wavelet_square(buf, width, height, level, l); in wavelet()
588 #define ZYWRLE_PACK_COEFF(buf, data, t, width, height, scanline, level) \ argument
589 ZYWRLE_TRANSFER_COEFF(buf, data, t, width, height, scanline, level, \
[all …]
H A Degl-headless.c77 edpy->blit_fb.height != backing_height) { in egl_scanout_texture()
88 uint32_t width, height, texture; in egl_scanout_dmabuf() local
97 height = qemu_dmabuf_get_height(dmabuf); in egl_scanout_dmabuf()
99 egl_scanout_texture(dcl, texture, false, width, height, 0, 0, in egl_scanout_dmabuf()
100 width, height, NULL); in egl_scanout_dmabuf()
107 uint32_t width, height, texture; in egl_cursor_dmabuf() local
118 height = qemu_dmabuf_get_height(dmabuf); in egl_cursor_dmabuf()
119 egl_fb_setup_for_tex(&edpy->cursor_fb, width, height, texture, false); in egl_cursor_dmabuf()
H A Ddbus-console.c68 "height", height, in G_DEFINE_TYPE()
113 uint32_t width, height; in dbus_gl_scanout_dmabuf() local
118 height = qemu_dmabuf_get_height(dmabuf); in dbus_gl_scanout_dmabuf()
120 dbus_display_console_set_size(ddc, width, height); in dbus_gl_scanout_dmabuf()
202 .height = arg_height, in dbus_console_set_ui_info()
417 int width, height; in dbus_touch_send_event() local
432 height = qemu_console_get_height(ddc->dcl.con, 0); in dbus_touch_send_event()
435 num_slot, width, height, in dbus_touch_send_event()
455 int width, height; in dbus_mouse_set_pos() local
468 height = qemu_console_get_height(ddc->dcl.con, 0); in dbus_mouse_set_pos()
[all …]
H A Dspice-input.c110 int width, height; member
169 static void tablet_set_logical_size(SpiceTabletInstance* sin, int width, int height) in tablet_set_logical_size() argument
173 if (height < 16) { in tablet_set_logical_size()
174 height = 16; in tablet_set_logical_size()
180 pointer->height = height; in tablet_set_logical_size()
190 qemu_input_queue_abs(NULL, INPUT_AXIS_Y, y, 0, pointer->height); in tablet_position()
H A Dconsole.c491 trace_displaysurface_create(width, height); in qemu_create_displaysurface()
498 width, height, in qemu_create_displaysurface()
675 0, height, in console_handle_touch_event()
806 y = MIN(y, height); in dpy_gfx_update()
808 h = MIN(h, height - y); in dpy_gfx_update()
841 int height; in dpy_gfx_replace_surface() local
849 height = 480; in dpy_gfx_replace_surface()
1068 x, y, width, height, d3d_tex2d, in dpy_gl_scanout_texture()
1220 int height = 480; in graphic_console_init() local
1228 height = qemu_console_get_height(s, 0); in graphic_console_init()
[all …]
/qemu/tests/tcg/hexagon/
H A Dhvx_histogram.c25 const int height = 20; variable
30 static uint8_t input[height][stride] __attribute__((aligned(128))) = {
50 static void ref_histogram(uint8_t *src, int stride, int width, int height, in ref_histogram() argument
57 for (int i = 0; i < height; i++) { in ref_histogram()
64 static void hvx_histogram(uint8_t *src, int stride, int width, int height, in hvx_histogram() argument
73 for (int i = 0; i < height; i += n) { in hvx_histogram()
74 int k = height - i > n ? n : height - i; in hvx_histogram()
82 ref_histogram(&input[0][0], stride, width, height, expect); in main()
83 hvx_histogram(&input[0][0], stride, width, height, result); in main()
/qemu/contrib/vhost-user-gpu/
H A Dvhost-user-gpu.c379 res->height = c2d.height; in vg_resource_create_2d()
618 t2d.r.height > res->height || in vg_transfer_to_host_2d()
688 ss.r.height > res->height || in vg_set_scanout()
690 ss.r.y + ss.r.height > res->height) { in vg_set_scanout()
711 scanout->height = ss.r.height; in vg_set_scanout()
724 .height = ss.r.height, in vg_set_scanout()
743 .height = scanout->height in vg_set_scanout()
773 rf.r.height > res->height || in vg_resource_flush()
775 rf.r.y + rf.r.height > res->height) { in vg_resource_flush()
815 .height = height, in vg_resource_flush()
[all …]
H A Dvirgl.c25 uint32_t width, height; in vg_virgl_update_cursor_data() local
28 cursor = virgl_renderer_get_cursor_data(resource_id, &width, &height); in vg_virgl_update_cursor_data()
31 g_return_if_fail(height == 64); in vg_virgl_update_cursor_data()
74 args.height = c2d.height; in virgl_cmd_create_resource_2d()
97 args.height = c3d.height; in virgl_cmd_create_resource_3d()
233 box.h = t2d.r.height; in virgl_cmd_transfer_to_host_2d()
371 if (ss.resource_id && ss.r.width && ss.r.height) { in virgl_cmd_set_scanout()
394 .payload.dmabuf_scanout.height = ss.r.height, in virgl_cmd_set_scanout()
396 .payload.dmabuf_scanout.fd_height = info.height, in virgl_cmd_set_scanout()
454 .payload.update.height = rf.r.height in virgl_cmd_resource_flush()
H A Dvugbm.c16 buf->mmap = g_malloc(buf->width * buf->height * 4); in mem_alloc_bo()
56 return ROUND_UP(buf->width * buf->height * 4, qemu_real_host_page_size()); in udmabuf_get_size()
139 buf->bo = gbm_bo_create(dev, buf->width, buf->height, in alloc_bo()
162 buf->mmap = gbm_bo_map(buf->bo, 0, 0, buf->width, buf->height, in map_bo()
294 uint32_t width, uint32_t height) in vugbm_buffer_create() argument
298 buffer->height = height; in vugbm_buffer_create()
/qemu/include/ui/
H A Dpixman-minimal.h101 int height; member
118 int height, in create_bits() argument
142 if (unlikely(__builtin_mul_overflow((size_t) height, in create_bits()
157 int height, in pixman_image_create_bits() argument
164 i->height = height; in pixman_image_create_bits()
170 create_bits(format, width, height, &rowstride_bytes); in pixman_image_create_bits()
171 if (width && height) { in pixman_image_create_bits()
221 return i->height; in pixman_image_get_height()
H A Drect.h12 uint16_t height; member
17 uint16_t width, uint16_t height) in qemu_rect_init() argument
22 rect->height = height; in qemu_rect_init()
40 y2 = MIN(a->y + a->height, b->y + b->height); in qemu_rect_intersect()

1234