Skip to content

Commit

Permalink
mod looprestoration: Remove {core,std}:: prefixes and use imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkysen committed Jul 7, 2024
1 parent 735716b commit a2d9a07
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/looprestoration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use libc::ptrdiff_t;
use std::cmp;
use std::ffi::c_int;
use std::ffi::c_uint;
use std::iter;
use std::mem;
use std::ops::Add;
use std::slice;
Expand Down Expand Up @@ -420,7 +421,7 @@ fn wiener_rust<BD: BitDepth>(
sum += tmp[i + 3].to::<i32>() * 128;
}

for (&tmp, &filter) in std::iter::zip(&tmp[i..i + 7], &filter[0][..7]) {
for (&tmp, &filter) in iter::zip(&tmp[i..i + 7], &filter[0][..7]) {
sum += tmp.to::<i32>() * filter as c_int;
}

Expand Down Expand Up @@ -1141,7 +1142,7 @@ mod neon {
if edges.contains(LrEdgeFlags::TOP) {
rav1d_wiener_filter_h_neon(
&mut mid.0[..],
core::ptr::null(),
ptr::null(),
lpf,
stride,
&filter[0],
Expand All @@ -1154,7 +1155,7 @@ mod neon {
if edges.contains(LrEdgeFlags::BOTTOM) {
rav1d_wiener_filter_h_neon(
&mut mid.0[(2 + h as usize) * mid_stride as usize..],
core::ptr::null(),
ptr::null(),
lpf.offset(6 * BD::pxstride(stride)),
stride,
&filter[0],
Expand All @@ -1172,7 +1173,7 @@ mod neon {
h,
&filter[1],
edges,
(mid_stride as usize * ::core::mem::size_of::<i16>()) as ptrdiff_t,
(mid_stride as usize * mem::size_of::<i16>()) as ptrdiff_t,
bd,
);
}
Expand Down

0 comments on commit a2d9a07

Please sign in to comment.