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

Set unused bytes to zero when converting to LA/La/PA #7276

Closed
wants to merge 1 commit into from

Conversation

radarhere
Copy link
Member

Inspired by @homm's comment #7260 (comment), when converting to LA/La/PA, this sets the two middle channels to zero.

This shouldn't make any functional difference at the moment, just improving clarity, and perhaps a small improvement in speed by replacing *out++ = (UINT8)pixel with *out++ = 0.

@homm
Copy link
Member

homm commented Jul 11, 2023

I personally don't have preferences what to store in unused bytes. Also I guess performance impact should be near zero/

@radarhere radarhere closed this Apr 1, 2024
@radarhere radarhere deleted the zero branch April 1, 2024 09:49
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

Successfully merging this pull request may close these issues.

2 participants