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

pixfmt_conv.c: R12L->{RGB, RGBA} SIMD implementations #392

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xsebela2
Copy link
Contributor

@xsebela2 xsebela2 commented Jun 7, 2024

This PR adds SIMD implementations for the color format conversion functions from R12L to RGB and RGBA, aimed to increase performance (the tools/convert benchmark tool reports an improvement from ~9 ms to ~5 ms for R12L->RGB and ~11 ms to ~6 ms for R12L->RGBA).

Although functional, the additions are kept commented out with #if 0 for now.

- added the -msse4.1 flag to tools/Makefile
- 9 ms -> 5 ms on my machine
- 11 ms -> 6 ms
- need to specifically comment out R12LtoRGB to run R12LtoRGBA -- for
  some reason, UltraGrid prefers the longer R12L -> RGB -> RGBA path
@xsebela2 xsebela2 marked this pull request as ready for review June 7, 2024 12:39
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.

1 participant