[Pixman] Question on libpixman's PIXMAN_FB_ACCESSORS

Soeren Sandmann sandmann at daimi.au.dk
Wed Jul 28 03:07:02 PDT 2010


Samuel Xu <samuel.xu.tech at gmail.com> writes:

> I noticed the PIXMAN_FB_ACCESSORS might not be defined/enabled for
> pixman lib in current build.
> inside pixman-accessor.h
> #ifdef PIXMAN_FB_ACCESSORS
> ...
> #else
> ..
> #endif
> 
> Could any kindly share viewpoint of PIXMAN_FB_ACCESSORS? E.g. Is it
> obsolete or it only can be enabled for some platform with specific HW,
> so some low-end platform can’t turn it on?

PIXMAN_FB_ACCESSORS is not something users can turn on or off.

Instead it is defined at the top of of the file
pixman-access-accessors.c, and then pixman-access.c is #included. This
lets the code in pixman-access.c be compiled twice, once with accessor
functions enabled, and once without.

The pixman_image_set_accessors() function is always available, but
note that if you use it, performance may be poor.


Soren


More information about the Pixman mailing list