Tiz Serim
Tiz Serim

Reputation: 11

Inflate PNG compression manual

I want to implement PNG data decoder from scratch. However i cannot find detailed step by step IDAT chunk compression/decompression manual. I read ZLIB docs and Data Compression The Complete Reference book. Do you have some reference to as detailed compression method as possible? Data of my PNG file

Upvotes: 0

Views: 559

Answers (1)

Mark Adler
Mark Adler

Reputation: 112502

The deflate compression format is fully documented in RFC 1951. The zlib wrapper around it is fully documented in RFC 1950. You can also look at puff.c for an implementation of a deflate decoder, with the express purpose of elucidating the format.

Upvotes: 1

Related Questions