Lines Matching full:colors
343 * Code to determine how many different colors used in rectangle.
1104 int colors; in send_palette_rect() local
1113 colors = palette_size(palette); in send_palette_rect()
1117 vnc_write_u8(vs, colors - 1); in send_palette_rect()
1131 tight_pack24(vs, vs->output.buffer + old_offset, colors, &offset); in send_palette_rect()
1150 return -1; /* No palette for 8bits colors */ in send_palette_rect()
1427 int bg, int fg, int colors, VncPalette *palette) in send_sub_rect_nojpeg() argument
1431 if (colors == 0) { in send_sub_rect_nojpeg()
1437 } else if (colors == 1) { in send_sub_rect_nojpeg()
1439 } else if (colors == 2) { in send_sub_rect_nojpeg()
1441 } else if (colors <= 256) { in send_sub_rect_nojpeg()
1452 int bg, int fg, int colors, in send_sub_rect_jpeg() argument
1457 if (colors == 0) { in send_sub_rect_jpeg()
1466 } else if (colors == 1) { in send_sub_rect_jpeg()
1468 } else if (colors == 2) { in send_sub_rect_jpeg()
1470 } else if (colors <= 256) { in send_sub_rect_jpeg()
1471 if (force || (colors > 96 && in send_sub_rect_jpeg()
1501 int colors; in send_sub_rect() local
1534 colors = tight_fill_palette(vs, tight, x, y, w * h, &bg, &fg, in send_sub_rect()
1539 ret = send_sub_rect_jpeg(vs, worker, x, y, w, h, bg, fg, colors, in send_sub_rect()
1543 colors, color_count_palette); in send_sub_rect()
1546 ret = send_sub_rect_nojpeg(vs, worker, x, y, w, h, bg, fg, colors, in send_sub_rect()