Lines Matching defs:pict

88 create_solid_fill_image(PicturePtr pict)
90 PictSolidFill *solid = &pict->pSourcePict->solidFill;
170 create_bits_picture(PicturePtr pict, Bool has_clip, int *xoff, int *yoff)
178 fbGetDrawablePixmap(pict->pDrawable, pixmap, *xoff, *yoff);
181 image = pixman_image_create_bits((pixman_format_code_t) pict->format,
193 if (picture_has_clip(pict))
197 pixman_region_translate(pict->pCompositeClip, *xoff, *yoff);
199 pixman_image_set_clip_region(image, pict->pCompositeClip);
202 pixman_region_translate(pict->pCompositeClip, -*xoff, -*yoff);
206 if (pict->pFormat->index.devPrivate)
207 pixman_image_set_indexed(image, pict->pFormat->index.devPrivate);
210 *xoff += pict->pDrawable->x;
211 *yoff += pict->pDrawable->y;
216 static pixman_image_t *image_from_pict_internal(PicturePtr pict, Bool has_clip,
221 set_image_properties(pixman_image_t * image, PicturePtr pict, Bool has_clip,
227 if (pict->transform) {
236 adjusted = *pict->transform;
246 pixman_image_set_transform(image, pict->transform);
249 switch (pict->repeatType) {
270 /* Fetch alpha map unless 'pict' is being used
273 if (pict->alphaMap && !is_alpha_map) {
276 image_from_pict_internal(pict->alphaMap, FALSE, &alpha_xoff,
279 pixman_image_set_alpha_map(image, alpha_map, pict->alphaOrigin.x,
280 pict->alphaOrigin.y);
282 free_pixman_pict(pict->alphaMap, alpha_map);
285 pixman_image_set_component_alpha(image, pict->componentAlpha);
287 switch (pict->filter) {
305 (pixman_fixed_t *) pict->filter_params,
306 pict->filter_nparams);
311 image_from_pict_internal(PicturePtr pict, Bool has_clip, int *xoff, int *yoff,
316 if (!pict)
319 if (pict->pDrawable) {
320 image = create_bits_picture(pict, has_clip, xoff, yoff);
322 else if (pict->pSourcePict) {
323 SourcePict *sp = pict->pSourcePict;
326 image = create_solid_fill_image(pict);
329 PictGradient *gradient = &pict->pSourcePict->gradient;
342 set_image_properties(image, pict, has_clip, xoff, yoff, is_alpha_map);
348 image_from_pict(PicturePtr pict, Bool has_clip, int *xoff, int *yoff)
350 return image_from_pict_internal(pict, has_clip, xoff, yoff, FALSE);
354 free_pixman_pict(PicturePtr pict, pixman_image_t * image)