pub struct MeCtx<'a> { /* private fields */ }Implementations§
Source§impl<'a> MeCtx<'a>
impl<'a> MeCtx<'a>
Sourcepub fn new(
src: &'a [u8],
cw: usize,
f: &'a [u8],
h_pl: &'a [u8],
v: &'a [u8],
c: &'a [u8],
stride: usize,
pad: usize,
pw: usize,
ph: usize,
lx: usize,
ly: usize,
w: usize,
h: usize,
) -> Option<Self>
pub fn new( src: &'a [u8], cw: usize, f: &'a [u8], h_pl: &'a [u8], v: &'a [u8], c: &'a [u8], stride: usize, pad: usize, pw: usize, ph: usize, lx: usize, ly: usize, w: usize, h: usize, ) -> Option<Self>
Validates the whole search geometry once. Returns None when AVX2 is
unavailable, the shape is uncovered, or any slice is short — the caller
then uses the safe per-eval path for the entire search.
Auto Trait Implementations§
impl<'a> Freeze for MeCtx<'a>
impl<'a> RefUnwindSafe for MeCtx<'a>
impl<'a> Send for MeCtx<'a>
impl<'a> Sync for MeCtx<'a>
impl<'a> Unpin for MeCtx<'a>
impl<'a> UnsafeUnpin for MeCtx<'a>
impl<'a> UnwindSafe for MeCtx<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more