← Back to team overview

team-scandraid team mailing list archive

Re: Raw outline ScanDraiD library

 

On Tue, 2009-05-05 at 00:00 +0200, arno wilhelm wrote:
> > Make it a member of the image class would sound logical.
> >
> > But I'm a bit in doubt how to use the image class for movie files. Right
> > now the overridden image class (jpeg in this case) loads a single
> > instance of a file and processes that. Would we want an overridden movie
> > class to open and close a movie-file for each frame? I'm not sure how
> > much overhead this gives, but I would expect quite some. How do other
> > libraries handle this?
> As far as I know the movie is split into single jpeg frames and then processed.
> Steve Baker did the frame splitting step with mplayer/mencoder which
> again uses libmpeg for that.
> On the homepage of Steve Baker you can download the movie he used for
> his tests and which he has split up into single pictures with mplayer

Splitting an image into separate frames is a trivial task, I agree. You
have applications like mplayer, ffmpeg among others but also Blender
will allow you to split a movie file into frames. Alternatively I would
like to statically link libffmpeg/libmpeg to add movie file reading
capability directly to the lib.
The solution might me to implement an ImageSequence (or an even better
name is ScanLine) class. It will then work similar to how processFrames
and processSingleFrame work now. processFrames is beging handled in the
sequence class and processSingleFrame in the image class.

Darius




Follow ups

References