I wanted to have a quick look at the PNG implementation, to see if I could have a high level understanding of the W3C spec over the weekend. After a quick implementation of the chunk parsing logic in
rust, I started to dig into the specification for the
IDAT chunk, … and things got a bit ouf of hand…
I am now reading the RFC1950 (zlib data format) and RFC1951 (DEFLATE algorithm), as they are are used to encode the image data. It looks like something that would be really interesting to implement, so I think that I will do that myself!