Lines Matching refs:y

75 static int tight_send_framebuffer_update(VncState *vs, int x, int y,
114 static int send_png_rect(VncState *vs, int x, int y, int w, int h,
141 int x, y, d, dx; in tight_detect_smooth_image24() local
157 for (y = 0, x = 0; y < h && x < w;) { in tight_detect_smooth_image24()
158 for (d = 0; d < h - y && d < w - x - VNC_TIGHT_DETECT_SUBROW_WIDTH; in tight_detect_smooth_image24()
161 left[c] = buf[((y+d)*w+x+d)*4+off+c] & 0xFF; in tight_detect_smooth_image24()
165 pix = buf[((y+d)*w+x+d+dx)*4+off+c] & 0xFF; in tight_detect_smooth_image24()
174 y = 0; in tight_detect_smooth_image24()
177 y += w; in tight_detect_smooth_image24()
212 int x, y, d, dx; \
232 y = 0, x = 0; \
233 while (y < h && x < w) { \
234 for (d = 0; d < h - y && \
236 pix = ((uint##bpp##_t *)buf)[(y+d)*w+x+d]; \
245 pix = ((uint##bpp##_t *)buf)[(y+d)*w+x+d+dx]; \
264 y = 0; \
267 y += w; \
347 tight_fill_palette##bpp(VncState *vs, int x, int y, \
420 static int tight_fill_palette(VncState *vs, int x, int y, in tight_fill_palette() argument
437 return tight_fill_palette32(vs, x, y, max, count, bg, fg, palette); in tight_fill_palette()
439 return tight_fill_palette16(vs, x, y, max, count, bg, fg, palette); in tight_fill_palette()
442 return tight_fill_palette8(vs, x, y, max, count, bg, fg, palette); in tight_fill_palette()
496 int x, y, bg_bits; \
501 for (y = 0; y < h; y++) { \
558 int x, y, c; in tight_filter_gradient24() local
573 for (y = 0; y < h; y++) { in tight_filter_gradient24()
616 int x, y, c; \
629 for (y = 0; y < h; y++) { \
676 check_solid_tile32(VncState *vs, int x, int y, int w, int h, in check_solid_tile32() argument
684 fbptr = vnc_server_fb_ptr(vd, x, y); in check_solid_tile32()
705 static bool check_solid_tile(VncState *vs, int x, int y, int w, int h, in check_solid_tile() argument
709 return check_solid_tile32(vs, x, y, w, h, color, samecolor); in check_solid_tile()
712 static void find_best_solid_area(VncState *vs, int x, int y, int w, int h, in find_best_solid_area() argument
721 for (dy = y; dy < y + h; dy += VNC_TIGHT_MAX_SPLIT_TILE_SIZE) { in find_best_solid_area()
723 dh = MIN(VNC_TIGHT_MAX_SPLIT_TILE_SIZE, y + h - dy); in find_best_solid_area()
740 if (w_prev * (dy + dh - y) > w_best * h_best) { in find_best_solid_area()
742 h_best = dy + dh - y; in find_best_solid_area()
750 static void extend_solid_area(VncState *vs, int x, int y, int w, int h, in extend_solid_area() argument
758 cy >= y && check_solid_tile(vs, *x_ptr, cy, *w_ptr, 1, &color, true); in extend_solid_area()
765 cy < y + h && in extend_solid_area()
917 static int send_full_color_rect(VncState *vs, int x, int y, int w, int h) in send_full_color_rect() argument
924 return send_png_rect(vs, x, y, w, h, NULL); in send_full_color_rect()
962 static int send_mono_rect(VncState *vs, int x, int y, in send_mono_rect() argument
977 ret = send_png_rect(vs, x, y, w, h, palette); in send_mono_rect()
1049 static bool send_gradient_rect(VncState *vs, int x, int y, int w, int h) in send_gradient_rect() argument
1056 return send_full_color_rect(vs, x, y, w, h); in send_gradient_rect()
1085 static int send_palette_rect(VncState *vs, int x, int y, in send_palette_rect() argument
1095 return send_png_rect(vs, x, y, w, h, palette); in send_palette_rect()
1185 static int send_jpeg_rect(VncState *vs, int x, int y, int w, int h, int quality) in send_jpeg_rect() argument
1196 return send_full_color_rect(vs, x, y, w, h); in send_jpeg_rect()
1224 qemu_pixman_linebuf_fill(linebuf, vs->vd->server, w, x, y + dy); in send_jpeg_rect()
1299 static int send_png_rect(VncState *vs, int x, int y, int w, int h, in send_png_rect() argument
1370 qemu_pixman_linebuf_fill(linebuf, vs->vd->server, w, x, y + dy); in send_png_rect()
1409 static int send_sub_rect_nojpeg(VncState *vs, int x, int y, int w, int h, in send_sub_rect_nojpeg() argument
1416 ret = send_gradient_rect(vs, x, y, w, h); in send_sub_rect_nojpeg()
1418 ret = send_full_color_rect(vs, x, y, w, h); in send_sub_rect_nojpeg()
1423 ret = send_mono_rect(vs, x, y, w, h, bg, fg); in send_sub_rect_nojpeg()
1425 ret = send_palette_rect(vs, x, y, w, h, palette); in send_sub_rect_nojpeg()
1433 static int send_sub_rect_jpeg(VncState *vs, int x, int y, int w, int h, in send_sub_rect_jpeg() argument
1444 ret = send_jpeg_rect(vs, x, y, w, h, quality); in send_sub_rect_jpeg()
1446 ret = send_full_color_rect(vs, x, y, w, h); in send_sub_rect_jpeg()
1451 ret = send_mono_rect(vs, x, y, w, h, bg, fg); in send_sub_rect_jpeg()
1458 ret = send_jpeg_rect(vs, x, y, w, h, quality); in send_sub_rect_jpeg()
1460 ret = send_palette_rect(vs, x, y, w, h, palette); in send_sub_rect_jpeg()
1478 static int send_sub_rect(VncState *vs, int x, int y, int w, int h) in send_sub_rect() argument
1494 vnc_framebuffer_update(vs, x, y, w, h, vs->tight->type); in send_sub_rect()
1497 vnc_raw_send_framebuffer_update(vs, x, y, w, h); in send_sub_rect()
1502 double freq = vnc_update_freq(vs, x, y, w, h); in send_sub_rect()
1509 vnc_sent_lossy_rect(vs, x, y, w, h); in send_sub_rect()
1514 colors = tight_fill_palette(vs, x, y, w * h, &bg, &fg, color_count_palette); in send_sub_rect()
1518 ret = send_sub_rect_jpeg(vs, x, y, w, h, bg, fg, colors, in send_sub_rect()
1521 ret = send_sub_rect_nojpeg(vs, x, y, w, h, bg, fg, colors, in send_sub_rect()
1525 ret = send_sub_rect_nojpeg(vs, x, y, w, h, bg, fg, colors, in send_sub_rect()
1532 static int send_sub_rect_solid(VncState *vs, int x, int y, int w, int h) in send_sub_rect_solid() argument
1534 vnc_framebuffer_update(vs, x, y, w, h, vs->tight->type); in send_sub_rect_solid()
1537 vnc_raw_send_framebuffer_update(vs, x, y, w, h); in send_sub_rect_solid()
1543 static int send_rect_simple(VncState *vs, int x, int y, int w, int h, in send_rect_simple() argument
1563 n += send_sub_rect(vs, x+dx, y+dy, rw, rh); in send_rect_simple()
1567 n += send_sub_rect(vs, x, y, w, h); in send_rect_simple()
1573 static int find_large_solid_color_rect(VncState *vs, int x, int y, in find_large_solid_color_rect() argument
1581 for (dy = y; dy < y + h; dy += VNC_TIGHT_MAX_SPLIT_TILE_SIZE) { in find_large_solid_color_rect()
1585 if (dy - y >= max_rows) { in find_large_solid_color_rect()
1586 n += send_rect_simple(vs, x, y, w, max_rows, true); in find_large_solid_color_rect()
1587 y += max_rows; in find_large_solid_color_rect()
1591 dh = MIN(VNC_TIGHT_MAX_SPLIT_TILE_SIZE, (y + h - dy)); in find_large_solid_color_rect()
1605 find_best_solid_area(vs, dx, dy, w - (dx - x), h - (dy - y), in find_large_solid_color_rect()
1619 extend_solid_area(vs, x, y, w, h, color_value, in find_large_solid_color_rect()
1624 if (y_best != y) { in find_large_solid_color_rect()
1625 n += send_rect_simple(vs, x, y, w, y_best-y, true); in find_large_solid_color_rect()
1643 if (y_best + h_best != y + h) { in find_large_solid_color_rect()
1645 w, h-(y_best-y)-h_best); in find_large_solid_color_rect()
1652 return n + send_rect_simple(vs, x, y, w, h, true); in find_large_solid_color_rect()
1655 static int tight_send_framebuffer_update(VncState *vs, int x, int y, in tight_send_framebuffer_update() argument
1669 double freq = vnc_update_freq(vs, x, y, w, h); in tight_send_framebuffer_update()
1672 return send_rect_simple(vs, x, y, w, h, false); in tight_send_framebuffer_update()
1678 return send_rect_simple(vs, x, y, w, h, true); in tight_send_framebuffer_update()
1686 return find_large_solid_color_rect(vs, x, y, w, h, max_rows); in tight_send_framebuffer_update()
1689 int vnc_tight_send_framebuffer_update(VncState *vs, int x, int y, in vnc_tight_send_framebuffer_update() argument
1693 return tight_send_framebuffer_update(vs, x, y, w, h); in vnc_tight_send_framebuffer_update()
1696 int vnc_tight_png_send_framebuffer_update(VncState *vs, int x, int y, in vnc_tight_png_send_framebuffer_update() argument
1700 return tight_send_framebuffer_update(vs, x, y, w, h); in vnc_tight_png_send_framebuffer_update()