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

Speed up RGB <--> XYZ conversions again #410

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

kimikage
Copy link
Collaborator

@kimikage kimikage commented Mar 4, 2020

This was invented five months ago (cf. #351 (comment)), and Julia v1.3 was released in the meantime.
SIMD optimization is difficult in RGB <--> XYZ conversions. so this change has no dramatic improvement but is still effective.

closes #351.

Edit:
However, if we add the partial support for color gamuts in the near future (e.g. in v0.13), it is a good idea to leave this PR open, because the codes for gamma compression/expansion will be moved to a new file "gamuts.jl" (cf. #412)

@codecov
Copy link

codecov bot commented Mar 4, 2020

Codecov Report

Merging #410 into master will increase coverage by 0.07%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #410      +/-   ##
==========================================
+ Coverage   81.87%   81.95%   +0.07%     
==========================================
  Files          11       11              
  Lines         883      892       +9     
==========================================
+ Hits          723      731       +8     
- Misses        160      161       +1     
Impacted Files Coverage Δ
src/conversions.jl 96.64% <90.90%> (-0.28%) ⬇️
src/utilities.jl 93.84% <100.00%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41444d8...3b5c8a5. Read the comment docs.

@kimikage kimikage merged commit a447509 into JuliaGraphics:master Mar 12, 2020
@kimikage kimikage deleted the rgb_xyz2 branch March 12, 2020 12:19
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.

[RFC] Whether RGB <-> XYZ conversion should be more faster or be kept simple
2 participants