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

Fix normalization when the result overflows #701

Merged
merged 7 commits into from
May 17, 2023
Merged

Fix normalization when the result overflows #701

merged 7 commits into from
May 17, 2023

Conversation

wasimabbas-arm
Copy link
Contributor

Using uint for max values now because uint Max32 can't be represented in IEEE754 single precision float. In calculations it will be promoted to float. Changed normalization function for single channel images to return max of the data type assuming (x, 0, 0, 0) vectors. And changed the test values accordingly

Using uint for max values now because uint Max32 can't be represented in IEEE754 single precision float. In calculations it will be promoted to float.
Changed normalization function for single channel images to return max of the data type assuming (x, 0, 0, 0) vectors.
And changed the test values accordingly
@wasimabbas-arm
Copy link
Contributor Author

@MarkCallow Have a look at this fix and let me know what you think.

@MarkCallow MarkCallow merged commit f81330b into KhronosGroup:main May 17, 2023
@MarkCallow
Copy link
Collaborator

Thanks @wasimabbas-arm.

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.

3 participants