pub struct VideoMetaTransformMatrix(/* private fields */);Implementations§
Source§impl VideoMetaTransformMatrix
impl VideoMetaTransformMatrix
pub fn new( in_info: &VideoInfo, in_rectangle: &VideoRectangle, out_info: &VideoInfo, out_rectangle: &VideoRectangle, ) -> Self
pub fn in_info(&self) -> &VideoInfo
pub fn in_rectangle(&self) -> &VideoRectangle
pub fn out_info(&self) -> &VideoInfo
pub fn out_rectangle(&self) -> &VideoRectangle
pub fn point(&self, x: i32, y: i32) -> Option<(i32, i32)>
pub fn point_clipped(&self, x: i32, y: i32) -> Option<(i32, i32)>
pub fn rectangle(&self, rectangle: &VideoRectangle) -> Option<VideoRectangle>
pub fn rectangle_clipped( &self, rectangle: &VideoRectangle, ) -> Option<VideoRectangle>
Trait Implementations§
impl Send for VideoMetaTransformMatrix
impl Sync for VideoMetaTransformMatrix
Auto Trait Implementations§
impl Freeze for VideoMetaTransformMatrix
impl RefUnwindSafe for VideoMetaTransformMatrix
impl Unpin for VideoMetaTransformMatrix
impl UnwindSafe for VideoMetaTransformMatrix
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