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

Supporting multi-byte grayscale PNG images? #241

Closed
crm-mtz opened this issue Jan 2, 2023 · 1 comment
Closed

Supporting multi-byte grayscale PNG images? #241

crm-mtz opened this issue Jan 2, 2023 · 1 comment

Comments

@crm-mtz
Copy link

crm-mtz commented Jan 2, 2023

HI there,

So I'm trying out the current framework. After discovering Simd only supports PNG's lossless file-format, I converted my images accordingly. My input PNG's are 16-bit grayscale pixels.

So, the Framework's API is able to decode and read in my image file, but it has a funny output, according to gdb:

$1 = {width = 1124, height = 1364, stride = 4512, format = Simd::ViewSimd::Allocator::Rgba32, data = 0x555569994a00 "", _owner = true}

The output in bold was unexpected. I was hoping the View would be set to ::Int16 and the stride would be 1124*2 = 2248
So, am I to understand that my 16-bit grayscale image is now RGB, with A channels?

Is there a plan to support the pure, multi-byte grayscale pixel plane in the near-future?
If not, I'd be happy to add this in.

Thanks, Charles.

@ermig1979
Copy link
Owner

@crm-mtz crm-mtz closed this as completed Feb 27, 2023
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

2 participants