Lines Matching full:pf
15 PixelFormat pf; in qemu_pixelformat_from_pixman() local
18 bpp = pf.bits_per_pixel = PIXMAN_FORMAT_BPP(format); in qemu_pixelformat_from_pixman()
19 pf.bytes_per_pixel = PIXMAN_FORMAT_BPP(format) / 8; in qemu_pixelformat_from_pixman()
20 pf.depth = PIXMAN_FORMAT_DEPTH(format); in qemu_pixelformat_from_pixman()
22 pf.abits = PIXMAN_FORMAT_A(format); in qemu_pixelformat_from_pixman()
23 pf.rbits = PIXMAN_FORMAT_R(format); in qemu_pixelformat_from_pixman()
24 pf.gbits = PIXMAN_FORMAT_G(format); in qemu_pixelformat_from_pixman()
25 pf.bbits = PIXMAN_FORMAT_B(format); in qemu_pixelformat_from_pixman()
29 pf.ashift = pf.bbits + pf.gbits + pf.rbits; in qemu_pixelformat_from_pixman()
30 pf.rshift = pf.bbits + pf.gbits; in qemu_pixelformat_from_pixman()
31 pf.gshift = pf.bbits; in qemu_pixelformat_from_pixman()
32 pf.bshift = 0; in qemu_pixelformat_from_pixman()
35 pf.ashift = pf.rbits + pf.gbits + pf.bbits; in qemu_pixelformat_from_pixman()
36 pf.bshift = pf.rbits + pf.gbits; in qemu_pixelformat_from_pixman()
37 pf.gshift = pf.rbits; in qemu_pixelformat_from_pixman()
38 pf.rshift = 0; in qemu_pixelformat_from_pixman()
41 pf.bshift = bpp - pf.bbits; in qemu_pixelformat_from_pixman()
42 pf.gshift = bpp - (pf.bbits + pf.gbits); in qemu_pixelformat_from_pixman()
43 pf.rshift = bpp - (pf.bbits + pf.gbits + pf.rbits); in qemu_pixelformat_from_pixman()
44 pf.ashift = 0; in qemu_pixelformat_from_pixman()
47 pf.rshift = bpp - pf.rbits; in qemu_pixelformat_from_pixman()
48 pf.gshift = bpp - (pf.rbits + pf.gbits); in qemu_pixelformat_from_pixman()
49 pf.bshift = bpp - (pf.rbits + pf.gbits + pf.bbits); in qemu_pixelformat_from_pixman()
50 pf.ashift = 0; in qemu_pixelformat_from_pixman()
56 pf.amax = (1 << pf.abits) - 1; in qemu_pixelformat_from_pixman()
57 pf.rmax = (1 << pf.rbits) - 1; in qemu_pixelformat_from_pixman()
58 pf.gmax = (1 << pf.gbits) - 1; in qemu_pixelformat_from_pixman()
59 pf.bmax = (1 << pf.bbits) - 1; in qemu_pixelformat_from_pixman()
60 pf.amask = pf.amax << pf.ashift; in qemu_pixelformat_from_pixman()
61 pf.rmask = pf.rmax << pf.rshift; in qemu_pixelformat_from_pixman()
62 pf.gmask = pf.gmax << pf.gshift; in qemu_pixelformat_from_pixman()
63 pf.bmask = pf.bmax << pf.bshift; in qemu_pixelformat_from_pixman()
65 return pf; in qemu_pixelformat_from_pixman()
150 pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf) in qemu_pixman_get_format() argument
155 type = qemu_pixman_get_type(pf->rshift, pf->gshift, pf->bshift); in qemu_pixman_get_format()
156 format = PIXMAN_FORMAT(pf->bits_per_pixel, type, in qemu_pixman_get_format()
157 pf->abits, pf->rbits, pf->gbits, pf->bbits); in qemu_pixman_get_format()