Libraries using the LDG system and the GIFLib functions to respectively decode (read) and encode (write) images stored in GIF87a and GIF89a formats.
Used by:
– P2SM (since 1.3E) to load/save GIF static images more quickly, to handle transparency and animations.
– MAKE_MAP (in P2SM tools) to slice a large GIF image into tiles and map,
– and future tools.
Other applications and games can use it, please read the HYP guide and P2SM GFA sources (gifdec_*/gifenc_* functions) as exemple.
Purpose for the GIF decoder is to obtain color table and 2d width*height array raw colors indexes data of the image (=rasterbits, =chunky mode). This avoids c2p+p2c two steps convertions in P2SM image tool, thus quicker. This is also convenient for games to load sprites, recolor them as wanted, and avoid to convert from TC24 bitmap (generated by classic decoders) downto 16/256 colors.
Here are listed versions for 68K, 68020-060 and ColdFire V4e using cross-compilation and the mintlib. Safe LDG.PRG is provided to install TSR ldg functions and the ‘LDGM’ cookie needed for my applications.
Archives | Size | Date | Notes | |||
---|---|---|---|---|---|---|
![]() |
68K | 020-060 | CFv4e | 135.57 KB | 06-13-2025 | release 2 |
C Sources or on github (0, 1, 2) | 573.9 KB | from GIFLib 5.2.2 | ||||
HYP guide | 5.1 KB | how-to use this LDG |