Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 692 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 692 Bytes

LisiblePNG - a PNG decoder

This PNG decoder is meant to be used in my other C projects.

Supported features

This is a simple implementation of a PNG decoder, it currently implements the following features:

  • IHDR, IDAT and IEND chunks
  • Greyscale wihout alpha
  • Truecolour without alpha, without palette
  • 1 to 16 bit depth samples
  • All PNG filtering methods

Alpha channels, interlacing, paletted images and non-mandatory chunks are not supported.

Building

meson setup <builddir>
meson compile -C <builddir>

CLI

lisiblepng-bin is a program that decodes a PNG and outputs it as a PPM image to stdout. Usage is as follow:

lisiblepng <image_path>