I rewrote Firefox's BMP decoder

  • I kind of hoped that this would be written in Rust. :)

  • BMP was one of the last formats that would be possible to "decode manually" (that is, read the actual data and paint the image from it). PCX was one of the other (using RLE)

    Sure, easier to use a library, but sometimes you have some constraints

  • Interesting write-up. Still, why even support BMP?

  • How much of the mozillas code is written in C/C++, and for what purpose...