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

Improve YUV to RGB Performance II #67

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

jnnks
Copy link

@jnnks jnnks commented Dec 11, 2024

Rewrites the YUV 2 RGB Loop

  • cache u & v planes for two rows of RGB pixels
  • use addition to increase indices

Before:

test convert_yuv_to_rgb_512x512    ... bench:     532,512.85 ns/iter (+/- 75,759.37)

After:

test convert_yuv_to_rgb_512x512    ... bench:     444,830.35 ns/iter (+/- 38,899.95)

Jannik Schleicher added 5 commits December 11, 2024 11:16
@ralfbiedert
Copy link
Owner

At this rate, by the end of the year you're beating GPUs :)

Outstanding, thanks!

@ralfbiedert ralfbiedert merged commit c1deb7a into ralfbiedert:master Dec 11, 2024
15 checks passed
@ralfbiedert
Copy link
Owner

Can confirm numbers, went from 191μs to 169μs.

@jnnks
Copy link
Author

jnnks commented Dec 11, 2024

At this rate, by the end of the year you're beating GPUs :)

I'm not so sure about that :D

That was fun. I had to do this conversion so often already, it was about time to do it a bit more sophisticated 👍

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