[Numpy-discussion] Lazy video array?

Magnus Lie Hetland magnus at hetland.org
Wed Mar 27 11:23:19 CST 2002


Just something I've been thinking about for a few years (and never
gotten around to doing anything about)... How realistic would it be to
wrap a video file as a type of three-dimensional (assuming grayscale)
array object and then use e.g. numarray to manipulate it? And how easy
would it be to make this sort of thing "lazy", so that only the parts
needed for the parts you actually access (for display or whatever) are
processed?

E.g. (silly example):

>>> a = videoarray('somefile.mpg')
>>> b = sin(a) # No real computation here
>>> for frame in b:
...    displayFrame(frame) # Computation performed here...

Or something...

Or maybe I'm just bonkers ;)

By the way: Is there any documentation of the numarray C API anywhere
yet?

--
Magnus Lie Hetland                                  The Anygui Project
http://hetland.org                                  http://anygui.org




More information about the Numpy-discussion mailing list