[Pixman] Pixman glyph compositing

Chris Wilson chris at chris-wilson.co.uk
Wed Jan 23 14:00:18 PST 2013


On Wed, Jan 23, 2013 at 08:50:18PM +0100, David Herrmann wrote:
> Hi
> 
> While working on kmscon the main rendering task I am faced with is
> blending a glyph into the main framebuffer with a constant foreground
> and background color. The code I have been using is a per-pixel
> blending operation on each color value:

What you want is to use pixman_composite_glyphs_no_mask() with a
LERP_SRC operator. Whilst we have the fast glyph routines, the linear
interpolation operator is still incomplete. You can take a look at an
old patch here:
http://cgit.freedesktop.org/~ickle/pixman/commit/?h=lerp&id=1ace0cf5a1983c7fc96a343379acffbc36efb61e

I just need to bring it up to date and see if it remains beneficial.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Pixman mailing list