[Scummvm-devel] Moving and merging image-related code

Eugene Sandulenko sev at scummvm.org
Wed Feb 2 18:53:27 CET 2011


On Wed, 2 Feb 2011 19:10:49 +0200
Filippos Karapetis <bluegr at gmail.com> wrote:

> Hello
> 
> There was an idea about moving all image related code to its own
> subdirectory within graphics.
> In particular, this would group all of the image formats we support
> together, separately from
> the rest of the graphics code.
That's a good idea indeed.

> Perhaps we could somehow merge the way
> they work, so that they all have a similar interface.
Would be nice too, but it's irrelevant to moving them into a separate
directory as it requires heavier refactoring.

> The current image-related code wegot inside graphics is:
> pict.* - Mac PICT decoder (PICTs are containers for JPEGs)
Not quite correct. PICT is a separate format. It /may/ have JPEGs but
generally is much more complex.

> Also, drascula, hugo, queen and tucker all have PCX loading code, so
> perhaps this should be
> merged to a PCX class together with the other image decoders...
Definitely.


Eugene




More information about the Scummvm-devel mailing list