RawData, clippy
This commit is contained in:
parent
5d39e227b6
commit
e34287df9e
4 changed files with 56 additions and 3 deletions
|
@ -19,5 +19,6 @@ dasp_sample = { workspace = true }
|
|||
rayon = { workspace = true }
|
||||
dirs = { workspace = true }
|
||||
rfd = { workspace = true }
|
||||
derive-new = "0.6.0"
|
||||
indicatif = { version = "0.17.8", features = ["rayon"] }
|
||||
derive-new = { workspace = true }
|
||||
infer = { workspace = true }
|
||||
indicatif = { workspace = true }
|
||||
|
|
|
@ -81,7 +81,7 @@ fn main() -> Result<()> {
|
|||
"[{eta}] {bar:40.green/red} {pos}/{len} pixels",
|
||||
)?)
|
||||
.map(|px: &[u8]| (px[2] as i32) | ((px[1] as i32) << 8) | ((px[0] as i32) << 16))
|
||||
.map(|px| U24::new_unchecked(px))
|
||||
.map(U24::new_unchecked)
|
||||
.map(|x| uparc(x.to_sample()))
|
||||
.flat_map(|sample: f32| {
|
||||
let rgb: U24 = sample.to_sample();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue