[Cython] 2d buffer interface with aligned data

2012-07-17 Thread Christian Heimes
Hello, I'm the author of https://bitbucket.org/tiran/smc.freeimage , a Cython wrapper of the FreeImage and LCMS libraries. FreeImage supports a broad variety of image formats and pixel formats from standard RGB up to RGBAF and complex numbers. Now I like to add support for buffer interface to my

Re: [Cython] 2d buffer interface with aligned data

2012-07-17 Thread Christian Heimes
Am 17.07.2012 18:55, schrieb Dag Sverre Seljebotn: > Read PEP 3118. Then implement __getbuffer__ and __releasebuffer__ in > your cdef class (don't know if it's documented but you can see example > in tests/run/buffer.pyx). The new buffer interface from PEP 3118 is only available for Python 2.6 and

Re: [Cython] 2d buffer interface with aligned data

2012-07-18 Thread Christian Heimes
Am 17.07.2012 22:55, schrieb Christian Heimes: > Either I'm doing something wrong or I found a Cython bug. I've attached > two files. The output is unexpected and looks like something is > accessing uninitialized memory: For the record: It's my fault. The shade and st

Re: [Cython] 2d buffer interface with aligned data

2012-07-18 Thread Christian Heimes
Am 18.07.2012 07:18, schrieb Stefan Behnel: > BTW, note that your question is better suited for the Cython users mailing > list than the core developer mailing list. I'm sorry. I didn't know Cython had a user list, too. Thanks Stefan! Christian ___ cyth