Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode RGB16 / G16 #243

Open
MiSo1289 opened this issue Jan 20, 2023 · 3 comments
Open

Decode RGB16 / G16 #243

MiSo1289 opened this issue Jan 20, 2023 · 3 comments

Comments

@MiSo1289
Copy link

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?

@randy408
Copy link
Owner

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.

@Upliner
Copy link

Upliner commented Mar 14, 2024

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.

@Upliner
Copy link

Upliner commented Mar 14, 2024

I've committed experimental RGB16 support to my fork. Haven't checked G16 yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants