Re: pygobject and buffers



On 09/04/14 09:49, jcupitt gmail com wrote:
How have other people done this?

I wrote a tiny Python module that converts from our GObject-based buffer
class to a NumPy array [1]. Works okay but requires a memcpy.

[1] https://github.com/ufo-kit/ufo-python-tools/blob/master/src/ufo.c

-- 
Matthias Vogelgesang | bloerg.net


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]