nothings / stb

stb single-file public domain libraries for C/C++
https://twitter.com/nothings
Other
26.31k stars 7.69k forks source link

stb_image: pbm support #1476

Open plzombie opened 1 year ago

plzombie commented 1 year ago

stb_image already supports binary ppm and pgm files. So I think it will be good to add support for pbm too. I also added some test files and added pbm in tests/ossfuzz.sh, don't know if it's enough or not.

plzombie commented 1 year ago

The last commit https://github.com/nothings/stb/pull/1476/commits/1ab7418d80b72c2587e64cdce767dde56bd62ca7 is for 16-bit ppm files. As I understand it's always stored in big-endian format so conversion is needed