Libpng troubles
Posted: Wed Oct 16, 2013 12:14 pm
Hi, I know this is a very specific question, however it's been troubling me for a while now.
I'm at the stage in my OS development where I can begin porting libraries, and so far I'm trying to port zlib & libpng.
I have a very annoying problem when trying to load *.png files through my port of libpng, is that while small to medium png files
gets loaded, they all throw a warning, however they get loaded and produce no visible error when rendering the png files.
The warning they give me is something like "gAMA: Bad gamma value", however it seems like that warning hardly matters (since they look like they should).
Now, when trying to load larger png files, like in the size of 1024x768, I get errors every time, and they are in the style of "bad adaptive filter value"
and "CRC: BAD DATA". And I've checked the png files with pngcheck.exe, and it clears them to be fine, so the fault must be in my port of libpng.
So, Im just wondering if anyone has any trouble that is just a little bit like this, and if so, they had any solution to this? Or is it just my
c library that is full of errors.
Thanks in advance
I'm at the stage in my OS development where I can begin porting libraries, and so far I'm trying to port zlib & libpng.
I have a very annoying problem when trying to load *.png files through my port of libpng, is that while small to medium png files
gets loaded, they all throw a warning, however they get loaded and produce no visible error when rendering the png files.
The warning they give me is something like "gAMA: Bad gamma value", however it seems like that warning hardly matters (since they look like they should).
Now, when trying to load larger png files, like in the size of 1024x768, I get errors every time, and they are in the style of "bad adaptive filter value"
and "CRC: BAD DATA". And I've checked the png files with pngcheck.exe, and it clears them to be fine, so the fault must be in my port of libpng.
So, Im just wondering if anyone has any trouble that is just a little bit like this, and if so, they had any solution to this? Or is it just my
c library that is full of errors.
Thanks in advance