Quoting Brian G. Rhodes:
> What would be the best way to playback animated graphics (gif/png) on a
> slow system.  geode gx1 sc1200.  is buffering all the frames in a video
> provider the best solution.  any better ideas?  It takes a while
> actually blit the image so it's not really quick enough to process them
> as they are needed if the delay is < 1 second between frames.

If you can't decode in real time you have to create the animation statically.

Put all frames into one surface. The layout depends on the number of frames
and the size of one frame. You shouldn't have a surface wider than 1024 for
certain hardware.

Example: 24 frames of each 64x64 should be layouted 12x2 on a 768x128 surface.

Each frame can then be blitted by passing a source rectangle to Blit().

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to