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 SIMD unit tests for transforms #468

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

adamjw24
Copy link
Member

@adamjw24 adamjw24 commented Nov 18, 2024

  • ensure only actually occuring cases are tested
  • ensure only bitdepths are used that actually occur in the codec
    • signed 8 bit for transformation
    • signed 16 bit for coefficients
    • signed 11 bit for residual

Comment on lines 285 to 286
unsigned seed = rand();
srand( seed );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes no sense. It gets a random number seeded with 1, and then seeds the random number generator with that "random" value, so it will always return the same sequence of random numbers. If you want to have a different sequence each time the tests run, you usually seed it with the current timestamp.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The initial seed is always 1? Didnt know that. Changed to a time call. Thanks

@jbrdbg jbrdbg merged commit 7cf1e5f into fraunhoferhhi:master Nov 19, 2024
8 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.

3 participants