pygobject and buffers



Hi all,

I'm making a python binding for my image processing library using
gobject-introspection and pygobject. It all seems to be working well,
thanks very much!

I need to be able to pass image data to other packages, like PIL and
NumPy. At the moment I'm doing this via strings, which has obvious
problems. I'd like to be able to use buffer objects and memoryview to
reduce the number of copy operations, but I've not been able to see
how.

Does pygobject support buffers? How have other people done this? I
couldn't find any reference to "Buffer" in the C sources in a quick
search. I'm probably being dumb.

John


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