[Scummvm-devel] png support

A. Milburn fuzzie at users.sourceforge.net
Fri Apr 29 13:19:10 CEST 2011


On Fri, Apr 29, 2011 at 12:49:22PM +0200, Max Horn wrote:
> Now I am confused: I thought folks added a custom png decoder to graphics/
> so that we don't need libpng anymore. So, do we really still need to
> disable BS2.5 just because libpng is present? And if libpng is present, do
> we disable graphics/png.* ?

See the "Moving and merging image-related code" thread - the short story is
that libpng is used for the thumbnails in the original savegame format, and
there's some disagreement about whether some attempt should be made to
preserve compatibility with that, although it doesn't seem the original
interpreter does so. Otherwise our custom png decoder is used by default,
I think.

My worry about our custom png decoder is about speed: sword25 spends an
awful lot of startup time in the PNG decoder right now, but I haven't
checked to see if libpng is any better. And since I had to hack in 4bpp
support to make sword25 start for me at all, I don't know if there are
perhaps more issues further into the game..

- fuzzie




More information about the Scummvm-devel mailing list