Open MiSo1289 opened 1 year ago
SPNG_FMT_PNG
works for both encode and decode for all formats, if you want RGB16 from a RGB16 PNG or G16 from a G16 PNG then an explicit format enum is not needed.
SPNG_FMT_PNG
works for both encode and decode for all formats, if you want RGB16 from a RGB16 PNG or G16 from a G16 PNG then an explicit format enum is not needed.
It doesn't solve my problem. I really need to be able to decode RGBA16 image to RGB16 buffer without temporary RGBA16 buffer for good performance.
I've committed experimental RGB16 support to my fork. Haven't checked G16 yet.
Currently, 16-bit images can be encoded without alpha, but not decoded (there is not rgb16 / g16 format for decoding, just rgba16 / ga16 / rgb8 / g8). Any plans to include this feature?