Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Rust color conversion with SIMD optimizations

License

BSD-3-Clause, Apache-2.0 licenses found

Licenses found

BSD-3-Clause
LICENSE.md
Apache-2.0
LICENSE-APACHE.md
NotificationsYou must be signed in to change notification settings

awxkee/colorutils-rs

The goal is to provide support for common conversion and SIMD options for most common conversion path for high-performance

Available SIMD fast paths generally 5-10 times faster than naive implementations

Allows conversion between

  • Rgb/Rgba/Rgba1010102/Rgb565/RgbF16
  • HSL
  • HSV
  • CIE LAB
  • CIE LUV
  • CIE LCh
  • XYZ
  • Sigmoidal
  • Oklab
  • Oklch
  • Jzazbz
  • Jzczhz
  • lαβ (l-alpha-beta)
  • XYB

Performance

There are some prebuilt functions for ex.

srgb_to_lab(src_bytes, width* components,&mut lab_store, width*3* std::mem::size_of::<f32>()asu32, width, height);

Prebuilt solutions ~3-5 times faster than naive implementation. If your case fits that you prebuilt function.Speed increasing done with AVX, NEON and SSE, if you are disabled or not using CPU with this features then you won'treceive any benefits.

Also,fma target feature for x86-64 is available.

Target feature at compile time+avx2 must be activated to properly compile avx2 instructions. This is an important step even when runtime dispatch are used.

This project is licensed under either of

  • BSD-3-Clause License (seeLICENSE)
  • Apache License, Version 2.0 (seeLICENSE)

at your option.

About

Rust color conversion with SIMD optimizations

Topics

Resources

License

BSD-3-Clause, Apache-2.0 licenses found

Licenses found

BSD-3-Clause
LICENSE.md
Apache-2.0
LICENSE-APACHE.md

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp