Struct gstreamer_video::VideoAlignment
source · pub struct VideoAlignment(pub(crate) GstVideoAlignment);
Tuple Fields§
§0: GstVideoAlignment
Implementations§
source§impl VideoAlignment
impl VideoAlignment
pub fn padding_top(&self) -> u32
pub fn padding_bottom(&self) -> u32
pub fn padding_left(&self) -> u32
pub fn padding_right(&self) -> u32
pub fn stride_align(&self) -> &[u32; 4]
pub fn new( padding_top: u32, padding_bottom: u32, padding_left: u32, padding_right: u32, stride_align: &[u32; 4], ) -> Self
Trait Implementations§
source§impl Clone for VideoAlignment
impl Clone for VideoAlignment
source§fn clone(&self) -> VideoAlignment
fn clone(&self) -> VideoAlignment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VideoAlignment
impl Debug for VideoAlignment
source§impl PartialEq for VideoAlignment
impl PartialEq for VideoAlignment
impl Eq for VideoAlignment
Auto Trait Implementations§
impl Freeze for VideoAlignment
impl RefUnwindSafe for VideoAlignment
impl Send for VideoAlignment
impl Sync for VideoAlignment
impl Unpin for VideoAlignment
impl UnwindSafe for VideoAlignment
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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