Lines Matching refs:pFormats

167     PictFormatPtr   pFormats;
338 pFormats = calloc(nformats, sizeof (PictFormatRec));
339 if (!pFormats)
343 pFormats[f].id = FakeClientID (0);
344 pFormats[f].depth = formats[f].depth;
346 pFormats[f].format = format;
349 pFormats[f].type = PictTypeDirect;
351 pFormats[f].direct.alphaMask = Mask(PICT_FORMAT_A(format));
352 if (pFormats[f].direct.alphaMask)
353 pFormats[f].direct.alpha = (PICT_FORMAT_R(format) +
357 pFormats[f].direct.redMask = Mask(PICT_FORMAT_R(format));
358 pFormats[f].direct.red = (PICT_FORMAT_G(format) +
361 pFormats[f].direct.greenMask = Mask(PICT_FORMAT_G(format));
362 pFormats[f].direct.green = PICT_FORMAT_B(format);
364 pFormats[f].direct.blueMask = Mask(PICT_FORMAT_B(format));
365 pFormats[f].direct.blue = 0;
369 pFormats[f].type = PictTypeDirect;
371 pFormats[f].direct.alphaMask = Mask(PICT_FORMAT_A(format));
372 if (pFormats[f].direct.alphaMask)
373 pFormats[f].direct.alpha = (PICT_FORMAT_B(format) +
377 pFormats[f].direct.blueMask = Mask(PICT_FORMAT_B(format));
378 pFormats[f].direct.blue = (PICT_FORMAT_G(format) +
381 pFormats[f].direct.greenMask = Mask(PICT_FORMAT_G(format));
382 pFormats[f].direct.green = PICT_FORMAT_R(format);
384 pFormats[f].direct.redMask = Mask(PICT_FORMAT_R(format));
385 pFormats[f].direct.red = 0;
389 pFormats[f].type = PictTypeDirect;
391 pFormats[f].direct.blueMask = Mask(PICT_FORMAT_B(format));
392 pFormats[f].direct.blue = (PICT_FORMAT_BPP(format) - PICT_FORMAT_B(format));
394 pFormats[f].direct.greenMask = Mask(PICT_FORMAT_G(format));
395 pFormats[f].direct.green = (PICT_FORMAT_BPP(format) - PICT_FORMAT_B(format) -
398 pFormats[f].direct.redMask = Mask(PICT_FORMAT_R(format));
399 pFormats[f].direct.red = (PICT_FORMAT_BPP(format) - PICT_FORMAT_B(format) -
402 pFormats[f].direct.alphaMask = Mask(PICT_FORMAT_A(format));
403 pFormats[f].direct.alpha = 0;
407 pFormats[f].type = PictTypeDirect;
409 pFormats[f].direct.alpha = 0;
410 pFormats[f].direct.alphaMask = Mask(PICT_FORMAT_A(format));
417 pFormats[f].type = PictTypeIndexed;
418 pFormats[f].index.vid = pScreen->visuals[PICT_FORMAT_VIS(format)].vid;
423 return pFormats;