Skip to content

Lisible/lisiblepng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>