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

Add STBIR_TYPE_UINT16_SRGB and STBIR_TYPE_FLOAT_SRGB #2

Open
4 tasks
p0nce opened this issue Nov 17, 2024 · 1 comment
Open
4 tasks

Add STBIR_TYPE_UINT16_SRGB and STBIR_TYPE_FLOAT_SRGB #2

p0nce opened this issue Nov 17, 2024 · 1 comment

Comments

@p0nce
Copy link
Contributor

p0nce commented Nov 17, 2024

Technically the rgba16 images in Gamut are still sRGB, but there is no way to resize being gamma aware using stb_image_resize[2].h, which always assume 16-bit images are linear.

  • Update stbir__type_size
  • "if we're completely point sampling, then we can turn off SRGB"
  • encode_alphas and encode_simple
  • decode_alphas and decode_simple
@p0nce
Copy link
Contributor Author

p0nce commented Nov 24, 2024

Though, in pure honesty there is a range of power curve images could have

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

1 participant