Skip to content

Conversation

@wiredfool
Copy link
Member

@wiredfool wiredfool commented Jan 9, 2014

Fixes #248, #67

This is a python /cffi implementation of the PixelAccess object and assorted hooks in Image.getpixel/putpixel. It is enabled by default for pypy, not for the c-python implementations. It requires cffi to be installed at runtime, there are no build dependencies.

This branch is (knock on wood) complete and consistent with the existing c-api implementation of pixel access (assuming and including #455 the i16-pixelaccess branch patches). It appears to be fast enough, but I haven't spent a ton of time tweaking it for ultimate speed.

I've tested this on little-endian and big-endian systems -- all tests pass on both platforms. (note that I tested in Python 2.7 on ppc, not pypy. I don't think pypy has made it to ppc yet. )

wiredfool added a commit that referenced this pull request Jan 31, 2014
Cffi PixelAccess object, Uint16 support in PixelAccess
@wiredfool wiredfool merged commit f36a31a into python-pillow:master Jan 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use CFFI for the pixel access object

1 participant