Henri Verbeet a écrit :
2008/8/29 Jérôme Gardou jerome.gardou@gmail.com:
If you want, I have an implementation of this same function for png... This one is not commented at all, and need some rework. Get it for comparison.
As you said, it needs some cleanup etc, but at least it doesn't look fundamentally broken to me. I'm not quite sure what the decompression stuff in D3DXGetImageInfoFromFileW() is supposed to do though.
Here is a new one, slightly cleaned up and without this crappy decompression stuff.