Re: Deconstructing animations



On Sun, 2003-06-29 at 14:25, Havoc Pennington wrote:
> On Sun, Jun 29, 2003 at 07:43:32PM +0200, Matthias Clasen wrote: 
> > No. All I want is a way to collect the sequence of pixbufs (and delays)
> > which I can get via a GdkPixbufAnimationIter, without running into
> > loops. I don't see how this would be giving up anything. Even mng
> > ultimatively results in a sequence of frames which are displayed one
> > after the other. 
> 
> Right, but it results in an infinite resolution series of frames. 
> i.e. I believe the format has things like "move sprite from point A to
> point B over N seconds"
> 
> In future it'd be nice to support flash or svg also, with similar
> features.
> 
> It's probably fine to convert to frames by taking snapshots at some
> interval, but if you did 30fps for example that way, the resulting
> frame-based anim could be really huge. So perhaps the API should let
> you request a frame rate, or let you check whether the anim is
> frame-based?

This is just vague brainstorming without any sort of real API proposal,m
but there it seems to me that there might be a use of interfaces
lurking around here somewhere.

You basically have some sort of object that represents an "image file".
Then there are various possibilities with what you might be able
to do with that object:

 - Get an GdkPixbufAnimationIter
 - Treat it as a collection of frames
 - Render it at a particular size

Are those interfaces?
						Owen





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