Lines Matching defs:pict
80 create_solid_fill_image (PicturePtr pict)
82 PictSolidFill *solid = &pict->pSourcePict->solidFill;
148 create_bits_picture (PicturePtr pict,
159 fbGetDrawablePixmap (pict->pDrawable, pixmap, *xoff, *yoff);
163 pict->format,
189 if (pict->clientClipType != CT_NONE)
193 pixman_region_translate (pict->pCompositeClip, *xoff, *yoff);
195 pixman_image_set_clip_region (image, pict->pCompositeClip);
198 pixman_region_translate (pict->pCompositeClip, -*xoff, -*yoff);
202 if (pict->pFormat->index.devPrivate)
203 pixman_image_set_indexed (image, pict->pFormat->index.devPrivate);
206 *xoff += pict->pDrawable->x;
207 *yoff += pict->pDrawable->y;
213 image_from_pict_internal (PicturePtr pict, Bool has_clip, int *xoff, int *yoff, Bool is_alpha_map);
216 set_image_properties (pixman_image_t *image, PicturePtr pict, Bool has_clip, int *xoff, int *yoff, Bool is_alpha_map)
221 if (pict->transform)
231 adjusted = *pict->transform;
240 pixman_image_set_transform (image, pict->transform);
243 switch (pict->repeatType)
265 /* Fetch alpha map unless 'pict' is being used
268 if (pict->alphaMap && !is_alpha_map)
271 pixman_image_t *alpha_map = image_from_pict_internal (pict->alphaMap, FALSE, &alpha_xoff, &alpha_yoff, TRUE);
274 image, alpha_map, pict->alphaOrigin.x, pict->alphaOrigin.y);
276 free_pixman_pict (pict->alphaMap, alpha_map);
279 pixman_image_set_component_alpha (image, pict->componentAlpha);
281 switch (pict->filter)
299 pixman_image_set_filter (image, filter, (pixman_fixed_t *)pict->filter_params, pict->filter_nparams);
304 image_from_pict_internal (PicturePtr pict, Bool has_clip, int *xoff, int *yoff, Bool is_alpha_map)
308 if (!pict)
311 if (pict->pDrawable)
313 image = create_bits_picture (pict, has_clip, xoff, yoff);
315 else if (pict->pSourcePict)
317 SourcePict *sp = pict->pSourcePict;
321 image = create_solid_fill_image (pict);
325 PictGradient *gradient = &pict->pSourcePict->gradient;
338 set_image_properties (image, pict, has_clip, xoff, yoff, is_alpha_map);
344 image_from_pict (PicturePtr pict, Bool has_clip, int *xoff, int *yoff)
346 return image_from_pict_internal (pict, has_clip, xoff, yoff, FALSE);
350 free_pixman_pict (PicturePtr pict, pixman_image_t *image)
352 if (image && pixman_image_unref (image) && pict->pDrawable)
353 fbFinishAccess (pict->pDrawable);