Raw-rs: Refactor to run multiple steps in a single loop (#1972)

* Prevent extra allocation in convert to RGB step

* Run preprocessing steps in a single loop

* Create new API to call steps in pipeline

* Include transform and gamma correction step

* cargo fmt

* Split scale colors into two steps

* Code relocations

* cargo fmt

* Implement transform traits for all tuples

* Replace Captures trick with the new `use` keyword
This commit is contained in:
Elbert Ronnie
2024-10-26 00:22:35 +05:30
committed by GitHub
parent a395fbf063
commit 442937c13f
20 changed files with 423 additions and 265 deletions

12
Cargo.lock generated
View File

@@ -1821,6 +1821,17 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "fortuples"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87630a8087e9cac4b7edfb6ee5e250ddca9112b57b6b17d8f5107375a3a8eace"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "futf"
version = "0.1.5"
@@ -4916,6 +4927,7 @@ version = "0.0.1"
dependencies = [
"bitstream-io",
"build-camera-data",
"fortuples",
"image 0.25.2",
"libraw-rs",
"num_enum 0.7.3",