Struct gstreamer_video::VideoInfoBuilder
source · pub struct VideoInfoBuilder<'a> {Show 16 fields
format: VideoFormat,
width: u32,
height: u32,
interlace_mode: Option<VideoInterlaceMode>,
flags: Option<VideoFlags>,
size: Option<usize>,
views: Option<u32>,
chroma_site: Option<VideoChromaSite>,
colorimetry: Option<&'a VideoColorimetry>,
par: Option<Fraction>,
fps: Option<Fraction>,
offset: Option<&'a [usize]>,
stride: Option<&'a [i32]>,
multiview_mode: Option<VideoMultiviewMode>,
multiview_flags: Option<VideoMultiviewFlags>,
field_order: Option<VideoFieldOrder>,
}
Fields§
§format: VideoFormat
§width: u32
§height: u32
§interlace_mode: Option<VideoInterlaceMode>
§flags: Option<VideoFlags>
§size: Option<usize>
§views: Option<u32>
§chroma_site: Option<VideoChromaSite>
§colorimetry: Option<&'a VideoColorimetry>
§par: Option<Fraction>
§fps: Option<Fraction>
§offset: Option<&'a [usize]>
§stride: Option<&'a [i32]>
§multiview_mode: Option<VideoMultiviewMode>
§multiview_flags: Option<VideoMultiviewFlags>
§field_order: Option<VideoFieldOrder>
Implementations§
source§impl<'a> VideoInfoBuilder<'a>
impl<'a> VideoInfoBuilder<'a>
pub fn build(self) -> Result<VideoInfo, BoolError>
pub fn interlace_mode( self, interlace_mode: VideoInterlaceMode, ) -> VideoInfoBuilder<'a>
pub fn flags(self, flags: VideoFlags) -> Self
pub fn size(self, size: usize) -> Self
pub fn views(self, views: u32) -> Self
pub fn chroma_site(self, chroma_site: VideoChromaSite) -> Self
pub fn colorimetry( self, colorimetry: &'a VideoColorimetry, ) -> VideoInfoBuilder<'a>
pub fn par<T: Into<Fraction>>(self, par: T) -> Self
pub fn fps<T: Into<Fraction>>(self, fps: T) -> Self
pub fn offset(self, offset: &'a [usize]) -> VideoInfoBuilder<'a>
pub fn stride(self, stride: &'a [i32]) -> VideoInfoBuilder<'a>
pub fn multiview_mode(self, multiview_mode: VideoMultiviewMode) -> Self
pub fn multiview_flags(self, multiview_flags: VideoMultiviewFlags) -> Self
pub fn field_order(self, field_order: VideoFieldOrder) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VideoInfoBuilder<'a>
impl<'a> RefUnwindSafe for VideoInfoBuilder<'a>
impl<'a> Send for VideoInfoBuilder<'a>
impl<'a> Sync for VideoInfoBuilder<'a>
impl<'a> Unpin for VideoInfoBuilder<'a>
impl<'a> UnwindSafe for VideoInfoBuilder<'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