Lines Matching full:depth
60 return PictureMatchVisual(pScreen, pWindow->drawable.depth, in PictureWindowFormat()
141 return pDepth->depth; in visualDepth()
148 CARD8 depth; member
152 addFormat(FormatInitRec formats[256], int *nformat, CARD32 format, CARD8 depth) in addFormat() argument
157 if (formats[n].format == format && formats[n].depth == depth) in addFormat()
160 formats[*nformat].depth = depth; in addFormat()
173 CARD8 depth; in PictureCreateDefaultFormats() local
185 formats[nformats].depth = 1; in PictureCreateDefaultFormats()
189 formats[nformats].depth = 8; in PictureCreateDefaultFormats()
193 formats[nformats].depth = 4; in PictureCreateDefaultFormats()
196 formats[nformats].depth = 32; in PictureCreateDefaultFormats()
199 formats[nformats].depth = 32; in PictureCreateDefaultFormats()
202 formats[nformats].depth = 32; in PictureCreateDefaultFormats()
205 formats[nformats].depth = 32; in PictureCreateDefaultFormats()
211 depth = visualDepth(pScreen, pVisual); in PictureCreateDefaultFormats()
212 if (!depth) in PictureCreateDefaultFormats()
214 bpp = BitsPerPixel(depth); in PictureCreateDefaultFormats()
242 addFormat(formats, &nformats, format, depth); in PictureCreateDefaultFormats()
248 addFormat(formats, &nformats, format, depth); in PictureCreateDefaultFormats()
253 addFormat(formats, &nformats, format, depth); in PictureCreateDefaultFormats()
262 bpp = BitsPerPixel(pDepth->depth); in PictureCreateDefaultFormats()
266 /* depth 12 formats */ in PictureCreateDefaultFormats()
267 if (pDepth->depth >= 12) { in PictureCreateDefaultFormats()
268 addFormat(formats, &nformats, PICT_x4r4g4b4, pDepth->depth); in PictureCreateDefaultFormats()
269 addFormat(formats, &nformats, PICT_x4b4g4r4, pDepth->depth); in PictureCreateDefaultFormats()
271 /* depth 15 formats */ in PictureCreateDefaultFormats()
272 if (pDepth->depth >= 15) { in PictureCreateDefaultFormats()
273 addFormat(formats, &nformats, PICT_x1r5g5b5, pDepth->depth); in PictureCreateDefaultFormats()
274 addFormat(formats, &nformats, PICT_x1b5g5r5, pDepth->depth); in PictureCreateDefaultFormats()
276 /* depth 16 formats */ in PictureCreateDefaultFormats()
277 if (pDepth->depth >= 16) { in PictureCreateDefaultFormats()
278 addFormat(formats, &nformats, PICT_a1r5g5b5, pDepth->depth); in PictureCreateDefaultFormats()
279 addFormat(formats, &nformats, PICT_a1b5g5r5, pDepth->depth); in PictureCreateDefaultFormats()
280 addFormat(formats, &nformats, PICT_r5g6b5, pDepth->depth); in PictureCreateDefaultFormats()
281 addFormat(formats, &nformats, PICT_b5g6r5, pDepth->depth); in PictureCreateDefaultFormats()
282 addFormat(formats, &nformats, PICT_a4r4g4b4, pDepth->depth); in PictureCreateDefaultFormats()
283 addFormat(formats, &nformats, PICT_a4b4g4r4, pDepth->depth); in PictureCreateDefaultFormats()
287 if (pDepth->depth >= 24) { in PictureCreateDefaultFormats()
288 addFormat(formats, &nformats, PICT_x8r8g8b8, pDepth->depth); in PictureCreateDefaultFormats()
289 addFormat(formats, &nformats, PICT_x8b8g8r8, pDepth->depth); in PictureCreateDefaultFormats()
291 if (pDepth->depth >= 30) { in PictureCreateDefaultFormats()
292 addFormat(formats, &nformats, PICT_a2r10g10b10, pDepth->depth); in PictureCreateDefaultFormats()
293 addFormat(formats, &nformats, PICT_x2r10g10b10, pDepth->depth); in PictureCreateDefaultFormats()
294 addFormat(formats, &nformats, PICT_a2b10g10r10, pDepth->depth); in PictureCreateDefaultFormats()
295 addFormat(formats, &nformats, PICT_x2b10g10r10, pDepth->depth); in PictureCreateDefaultFormats()
306 pFormats[f].depth = formats[f].depth; in PictureCreateDefaultFormats()
498 PictureMatchVisual(ScreenPtr pScreen, int depth, VisualPtr pVisual) in PictureMatchVisual() argument
524 if (format->depth == depth && format->type == type) { in PictureMatchVisual()
546 PictureMatchFormat(ScreenPtr pScreen, int depth, CARD32 f) in PictureMatchFormat() argument
557 if (format->depth == depth && format->format == (f & 0xffffff)) in PictureMatchFormat()
1157 if ((pPixmap->drawable.depth != 1) || in ChangePicture()