clipka wrote:
> How about just checking for "png_inf->valid & PNG_INFO_sRGB"? Shouldn't
> that do the same job?
>
You are aware that you are breaking the poor mans idea of encapsulation
by directly accessing the fields from png_inf ;)
And it's by no means time critical, so why not just use the API call?
> Another thing: The sRGB spec speaks of aiming to achieve an overall
> viewing gamma of 1.125; am I however correct in assuming that decoding
> sRGB-encoded material according to the sRGB decoding function will
> nonetheless reconstruct the /linear/ data?
>
The sRGB viewing gamma of 1.125 is just another (poor mans) attempt of
taking the environment illumination of some typical pc user into
account. There are much more complicated attemps from the ICC and I
really think we do not need to care about this.
-Ive
Post a reply to this message
|