Struct Discoverer Video Info Builder
Source pub struct DiscovererVideoInfoBuilder(/* private fields */);Expand description
Opaque structure for building DiscovererVideoInfo objects programmatically.
Implementations§
Source§impl DiscovererVideoInfoBuilder
impl DiscovererVideoInfoBuilder
Sourcepub fn new(stream_id: &str, caps: &Caps) -> Self
pub fn new(stream_id: &str, caps: &Caps) -> Self
Creates a new DiscovererVideoInfoBuilder.
Video properties (width, height, framerate, PAR) will be extracted from caps.
§stream_id
the stream ID
§caps
the video caps
§Returns
pub fn bitrate(self, bitrate: u32) -> Self
pub fn interlaced(self, interlaced: bool) -> Self
pub fn max_bitrate(self, max_bitrate: u32) -> Self
pub fn is_image(self, is_image: bool) -> Self
pub fn tags(self, tags: &TagList) -> Self
Sourcepub fn build(self) -> DiscovererVideoInfo
pub fn build(self) -> DiscovererVideoInfo
Builds and returns a new DiscovererVideoInfo. This frees the builder.
§Returns
a new DiscovererVideoInfo
Trait Implementations§
Source§impl Debug for DiscovererVideoInfoBuilder
impl Debug for DiscovererVideoInfoBuilder
Source§impl Drop for DiscovererVideoInfoBuilder
Available on crate feature v1_30 only.
impl Drop for DiscovererVideoInfoBuilder
Available on crate feature
v1_30 only.Auto Trait Implementations§
impl !Send for DiscovererVideoInfoBuilder
impl !Sync for DiscovererVideoInfoBuilder
impl Freeze for DiscovererVideoInfoBuilder
impl RefUnwindSafe for DiscovererVideoInfoBuilder
impl Unpin for DiscovererVideoInfoBuilder
impl UnsafeUnpin for DiscovererVideoInfoBuilder
impl UnwindSafe for DiscovererVideoInfoBuilder
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