Crates.io | image_swizzle |
lib.rs | image_swizzle |
version | |
source | src |
created_at | 2024-11-05 15:12:27.161735 |
updated_at | 2024-11-08 15:23:57.773038 |
description | SIMD accelerated image swizzling routines |
homepage | https://github.com/MAlba124/swizzle |
repository | https://github.com/MAlba124/swizzle |
max_upload_size | |
id | 1436682 |
Cargo.toml error: | TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
SIMD accelerated image swizzling routines.
Following shows benchmarks for frames of size 4096x4096.
test tests::bench_big_serial_rgba_to_bgra ... bench: 31,355,763.50 ns/iter (+/- 1,238,430.78)
test tests::bench_big_vectorized_rgba_to_bgra ... bench: 10,754,762.50 ns/iter (+/- 1,092,212.55) # 2.9x faster
test tests::bench_big_serial_rgba_to_bgra_inplace ... bench: 29,412,045.30 ns/iter (+/- 1,112,664.50)
test tests::bench_big_vectorized_rgba_to_bgra_inplace ... bench: 8,075,968.10 ns/iter (+/- 874,224.50) # 3.6x faster
Following shows benchmarks for frames of size 4096x2160.
test tests::bench_serial_rgba_to_bgra ... bench: 16,567,283.20 ns/iter (+/- 1,388,114.34)
test tests::bench_vectorized_rgba_to_bgra ... bench: 5,318,125.25 ns/iter (+/- 565,093.18) # 3.1x faster
test tests::bench_serial_rgba_to_bgra_inplace ... bench: 15,619,490.90 ns/iter (+/- 631,683.88)
test tests::bench_vectorized_rgba_to_bgra_inplace ... bench: 4,195,717.60 ns/iter (+/- 507,956.24) # 3.7x faster