From: Magnus L. H. <ma...@he...> - 2002-03-27 19:21:48
|
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 |