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

cambi.c: validate input value ranges #1355

Merged
merged 1 commit into from
Apr 2, 2024
Merged

cambi.c: validate input value ranges #1355

merged 1 commit into from
Apr 2, 2024

Conversation

nilfm99
Copy link
Collaborator

@nilfm99 nilfm99 commented Mar 26, 2024

Replaces #1352. Benchmarks on my laptop show no observable overhead wrt master but need to check further.

(my benchmarks were on a 10-bit input so it's not just because of the early return in 8-bit and 16-bit cases)

@nilfm99 nilfm99 requested a review from kylophone March 26, 2024 19:24
@nilfm99
Copy link
Collaborator Author

nilfm99 commented Mar 26, 2024

Benchmarks on 10-bit input on a Macbook M1 show no significant difference.
Benchmarks on 10-bit input on an ubuntu machine with AMD cpu show 1% performance degradation.

Both cases running just CAMBI, single-threaded.

@kylophone
Copy link
Collaborator

LGTM for now. Might need to revisit if we need to go after CAMBI speedups.

@nilfm99 nilfm99 merged commit 1eed995 into master Apr 2, 2024
17 checks passed
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