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: RGB <-> RGBA #397

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

xsebela2
Copy link
Contributor

This PR adds conversions between RGBA and RGB written in SIMD intrinsics, reducing time per 4k frame from 9 ms to about 5 ms.

This code specializes only for color shifts of the RGBx and BGRx formats, since allowing arbitrary channel shifts would complicate code unnecessarily and wouldn't be faster.

Reduces time per 4k frame from 9 ms to about 5 ms.
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