pub struct TileMEStats<'a> {
data: *const MEStats,
x: usize,
y: usize,
cols: usize,
rows: usize,
stride: usize,
phantom: PhantomData<&'a MotionVector>,
}Expand description
Tiled view of FrameMEStats
Fields§
§data: *const MEStats§x: usize§y: usize§cols: usize§rows: usize§stride: usizenumber of cols in the underlying FrameMEStats
phantom: PhantomData<&'a MotionVector>Implementations§
Source§impl<'a> TileMEStats<'a>
impl<'a> TileMEStats<'a>
Sourcepub fn new(
frame_mvs: &'a FrameMEStats,
x: usize,
y: usize,
cols: usize,
rows: usize,
) -> Self
pub fn new( frame_mvs: &'a FrameMEStats, x: usize, y: usize, cols: usize, rows: usize, ) -> Self
§Panics
- If the requested dimensions are larger than the frame MV size
pub const fn x(&self) -> usize
pub const fn y(&self) -> usize
pub const fn cols(&self) -> usize
pub const fn rows(&self) -> usize
Trait Implementations§
Source§impl<'a> Debug for TileMEStats<'a>
impl<'a> Debug for TileMEStats<'a>
Source§impl Index<usize> for TileMEStats<'_>
impl Index<usize> for TileMEStats<'_>
impl Send for TileMEStats<'_>
impl Sync for TileMEStats<'_>
Auto Trait Implementations§
impl<'a> Freeze for TileMEStats<'a>
impl<'a> RefUnwindSafe for TileMEStats<'a>
impl<'a> Unpin for TileMEStats<'a>
impl<'a> UnsafeUnpin for TileMEStats<'a>
impl<'a> UnwindSafe for TileMEStats<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more