michael ferraro wrote:
> The data is a simple unsigned char *
Thats just what NumPy's ArrayFromDimsAndData() (or something like that)
expects. However, one issue is that if you don't copy the data, then
it's hard to have Python manage the garbage collection, you need to
figure out how (and when
The data is a simple unsigned char *
so thanks for the leads.
M
On Oct 26, 2005, at 1:02 PM, Chris Barker wrote:
> michael ferraro wrote:
>
>> I need to eliminate any copies of a PixMaps used
>> by a Quicktime Movie that I am texture mapping
>> with OpenGL. I have built an extension in "C" b
michael ferraro wrote:
> I need to eliminate any copies of a PixMaps used
> by a Quicktime Movie that I am texture mapping
> with OpenGL. I have built an extension in "C" but
> I am a bit unclear as to how to "circumvent" the the
> copy done by Py_BuildValue.
>
> I was wondering if any one has a
You may want to investigate the new array interface:
http://numeric.scipy.org/array_interface.html
It's meant to deal with this situation.
Travis Oliphant also has plans to build a C version of this. For now, if
you need to do it in C, you'll have to use the Python-C API and
manipulate the Pyt
I need to eliminate any copies of a PixMaps used
by a Quicktime Movie that I am texture mapping
with OpenGL. I have built an extension in "C" but
I am a bit unclear as to how to "circumvent" the the
copy done by Py_BuildValue.
I was wondering if any one has any experience
or advice on how to app