Skip to content
/ LuPng Public

A small PNG decoder/encoder lib extracted from my game engine, Lunacy.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE-miniz
Notifications You must be signed in to change notification settings

jansol/LuPng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuPng

A small PNG decoder/encoder lib extracted from my game engine, Lunacy. It was designed for minimal state overhead and to exclusively use read/write callbacks to make it easier to use PNG data from various sources.

Usage

See example.c

Building

LuPng uses the zlib API for compression and decompression. For convenience this repo also contains miniz, a public domain implementation of the deflate algorithm that exposes the zlib API. However if your project already uses zlib you can tell LuPng to use that instead.

With zlib:

  • add lupng.c to your project
  • define LUPNG_USE_ZLIB
  • link against zlib
  • Example: cc example.c lupng.c -DLUPNG_USE_ZLIB -lz

With miniz:

  • add lupng.c and miniz.c to your project
  • add a miniz header to your include path (there is one provided in the miniz/ directory)
  • Example: cc example.c lupng.c -Iminiz/

License

LuPng and miniz are licensed under the MIT license. See the files LICENSE and miniz/LICENSE respectively for details.

About

A small PNG decoder/encoder lib extracted from my game engine, Lunacy.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE-miniz

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published