Re: pixbuf<->cairo_surface_t conversion
- From: Soeren Sandmann <sandmann daimi au dk>
- To: Matthias Clasen <matthias clasen gmail com>
- Cc: gtk-devel-list <gtk-devel-list gnome org>, Havoc Pennington <hp pobox com>
- Subject: Re: pixbuf<->cairo_surface_t conversion
- Date: 03 Sep 2010 23:14:21 +0200
Matthias Clasen <matthias clasen gmail com> writes:
> On Fri, Sep 3, 2010 at 3:22 AM, Soeren Sandmann <sandmann daimi au dk> wrote:
>
>
> > Not that it matters that much, but if you use cairo_mask() with the
> > pixbuf data as both source and mask, the source as RGB24 and the mask
> > as ARGB32, you could make cairo do the conversion from pixbuf to
> > surface. That would likely hit an SSE2 or ARM NEON optimized code path
> > in pixman.
> >
>
> Interesting. But how would that deal with the fixed-endianness of
> pixbuf data vs the native endianness of cairo ?
It would only work on little endian CPUs.
Soren
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]