Ive schrieb:
> To make life easier that's the libpng call for getting the
> sRGB chunk information. For the sole purpose of gamma correction you can
> safely ignore the value that is returned as sRGB_intent.
How about just checking for "png_inf->valid & PNG_INFO_sRGB"? Shouldn't
that do the same job?
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?
Otherwise, if sRGB-encoded data was expected to already account for that
desired viewing gamma, for raytracing purposes it would theoretically
have to be compensated for, both when decoding and encoding.
Post a reply to this message
|