Lines Matching defs:pFormats
170 PictFormatPtr pFormats;
297 pFormats = calloc(nformats, sizeof(PictFormatRec));
298 if (!pFormats)
301 pFormats[f].id = FakeClientID(0);
302 pFormats[f].depth = formats[f].depth;
304 pFormats[f].format = format;
307 pFormats[f].type = PictTypeDirect;
309 pFormats[f].direct.alphaMask = Mask (PICT_FORMAT_A(format));
311 if (pFormats[f].direct.alphaMask)
312 pFormats[f].direct.alpha = (PICT_FORMAT_R(format) +
316 pFormats[f].direct.redMask = Mask (PICT_FORMAT_R(format));
318 pFormats[f].direct.red = (PICT_FORMAT_G(format) +
321 pFormats[f].direct.greenMask = Mask (PICT_FORMAT_G(format));
323 pFormats[f].direct.green = PICT_FORMAT_B(format);
325 pFormats[f].direct.blueMask = Mask (PICT_FORMAT_B(format));
327 pFormats[f].direct.blue = 0;
331 pFormats[f].type = PictTypeDirect;
333 pFormats[f].direct.alphaMask = Mask (PICT_FORMAT_A(format));
335 if (pFormats[f].direct.alphaMask)
336 pFormats[f].direct.alpha = (PICT_FORMAT_B(format) +
340 pFormats[f].direct.blueMask = Mask (PICT_FORMAT_B(format));
342 pFormats[f].direct.blue = (PICT_FORMAT_G(format) +
345 pFormats[f].direct.greenMask = Mask (PICT_FORMAT_G(format));
347 pFormats[f].direct.green = PICT_FORMAT_R(format);
349 pFormats[f].direct.redMask = Mask (PICT_FORMAT_R(format));
351 pFormats[f].direct.red = 0;
355 pFormats[f].type = PictTypeDirect;
357 pFormats[f].direct.blueMask = Mask (PICT_FORMAT_B(format));
359 pFormats[f].direct.blue =
362 pFormats[f].direct.greenMask = Mask (PICT_FORMAT_G(format));
364 pFormats[f].direct.green =
368 pFormats[f].direct.redMask = Mask (PICT_FORMAT_R(format));
370 pFormats[f].direct.red =
374 pFormats[f].direct.alphaMask = Mask (PICT_FORMAT_A(format));
376 pFormats[f].direct.alpha = 0;
380 pFormats[f].type = PictTypeDirect;
382 pFormats[f].direct.alpha = 0;
383 pFormats[f].direct.alphaMask = Mask (PICT_FORMAT_A(format));
390 pFormats[f].type = PictTypeIndexed;
391 pFormats[f].index.vid =
397 return pFormats;