Lines Matching refs:pf
351 if (ds_get_bytes_per_pixel(ds) != vs->guest.ds->pf.bytes_per_pixel) in vnc_resize()
401 r = ((((v & vs->server.ds->pf.rmask) >> vs->server.ds->pf.rshift) << vs->clientds.pf.rbits) >> in vnc_convert_pixel()
402 vs->server.ds->pf.rbits); in vnc_convert_pixel()
403 g = ((((v & vs->server.ds->pf.gmask) >> vs->server.ds->pf.gshift) << vs->clientds.pf.gbits) >> in vnc_convert_pixel()
404 vs->server.ds->pf.gbits); in vnc_convert_pixel()
405 b = ((((v & vs->server.ds->pf.bmask) >> vs->server.ds->pf.bshift) << vs->clientds.pf.bbits) >> in vnc_convert_pixel()
406 vs->server.ds->pf.bbits); in vnc_convert_pixel()
407 v = (r << vs->clientds.pf.rshift) | in vnc_convert_pixel()
408 (g << vs->clientds.pf.gshift) | in vnc_convert_pixel()
409 (b << vs->clientds.pf.bshift); in vnc_convert_pixel()
410 switch(vs->clientds.pf.bytes_per_pixel) { in vnc_convert_pixel()
444 if (vs->server.ds->pf.bytes_per_pixel == 4) { in vnc_write_pixels_generic()
450 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel); in vnc_write_pixels_generic()
452 } else if (vs->server.ds->pf.bytes_per_pixel == 2) { in vnc_write_pixels_generic()
458 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel); in vnc_write_pixels_generic()
460 } else if (vs->server.ds->pf.bytes_per_pixel == 1) { in vnc_write_pixels_generic()
466 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel); in vnc_write_pixels_generic()
527 last_fg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel); in send_framebuffer_update_hextile()
528 last_bg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel); in send_framebuffer_update_hextile()
1589 !memcmp(&(vs->clientds.pf), &(vs->ds->surface->pf), sizeof(PixelFormat))) { in set_pixel_conversion()
1591 switch (vs->ds->surface->pf.bits_per_pixel) { in set_pixel_conversion()
1604 switch (vs->ds->surface->pf.bits_per_pixel) { in set_pixel_conversion()
1630 vs->clientds.pf.rmax = red_max; in set_pixel_format()
1631 count_bits(vs->clientds.pf.rbits, red_max); in set_pixel_format()
1632 vs->clientds.pf.rshift = red_shift; in set_pixel_format()
1633 vs->clientds.pf.rmask = red_max << red_shift; in set_pixel_format()
1634 vs->clientds.pf.gmax = green_max; in set_pixel_format()
1635 count_bits(vs->clientds.pf.gbits, green_max); in set_pixel_format()
1636 vs->clientds.pf.gshift = green_shift; in set_pixel_format()
1637 vs->clientds.pf.gmask = green_max << green_shift; in set_pixel_format()
1638 vs->clientds.pf.bmax = blue_max; in set_pixel_format()
1639 count_bits(vs->clientds.pf.bbits, blue_max); in set_pixel_format()
1640 vs->clientds.pf.bshift = blue_shift; in set_pixel_format()
1641 vs->clientds.pf.bmask = blue_max << blue_shift; in set_pixel_format()
1642 vs->clientds.pf.bits_per_pixel = bits_per_pixel; in set_pixel_format()
1643 vs->clientds.pf.bytes_per_pixel = bits_per_pixel / 8; in set_pixel_format()
1644 vs->clientds.pf.depth = bits_per_pixel == 32 ? 24 : bits_per_pixel; in set_pixel_format()
1656 vnc_write_u8(vs, vs->ds->surface->pf.bits_per_pixel); /* bits-per-pixel */ in pixel_format_message()
1657 vnc_write_u8(vs, vs->ds->surface->pf.depth); /* depth */ in pixel_format_message()
1665 vnc_write_u16(vs, vs->ds->surface->pf.rmax); /* red-max */ in pixel_format_message()
1666 vnc_write_u16(vs, vs->ds->surface->pf.gmax); /* green-max */ in pixel_format_message()
1667 vnc_write_u16(vs, vs->ds->surface->pf.bmax); /* blue-max */ in pixel_format_message()
1668 vnc_write_u8(vs, vs->ds->surface->pf.rshift); /* red-shift */ in pixel_format_message()
1669 vnc_write_u8(vs, vs->ds->surface->pf.gshift); /* green-shift */ in pixel_format_message()
1670 vnc_write_u8(vs, vs->ds->surface->pf.bshift); /* blue-shift */ in pixel_format_message()
1671 if (vs->ds->surface->pf.bits_per_pixel == 32) in pixel_format_message()
1673 else if (vs->ds->surface->pf.bits_per_pixel == 16) in pixel_format_message()
1675 else if (vs->ds->surface->pf.bits_per_pixel == 8) in pixel_format_message()