pub struct VideoStreamInfoBuilder { /* private fields */ }Expand description
Builder for constructing VideoStreamInfo.
Implementations§
Source§impl VideoStreamInfoBuilder
impl VideoStreamInfoBuilder
Sourcepub fn codec(self, codec: VideoCodec) -> Self
pub fn codec(self, codec: VideoCodec) -> Self
Sets the video codec.
Sourcepub fn codec_name(self, name: impl Into<String>) -> Self
pub fn codec_name(self, name: impl Into<String>) -> Self
Sets the codec name string.
Sourcepub fn pixel_format(self, format: PixelFormat) -> Self
pub fn pixel_format(self, format: PixelFormat) -> Self
Sets the pixel format.
Sourcepub fn frame_rate(self, rate: Rational) -> Self
pub fn frame_rate(self, rate: Rational) -> Self
Sets the frame rate.
Sourcepub fn frame_count(self, count: u64) -> Self
pub fn frame_count(self, count: u64) -> Self
Sets the total frame count.
Sourcepub fn color_space(self, space: ColorSpace) -> Self
pub fn color_space(self, space: ColorSpace) -> Self
Sets the color space.
Sourcepub fn color_range(self, range: ColorRange) -> Self
pub fn color_range(self, range: ColorRange) -> Self
Sets the color range.
Sourcepub fn color_primaries(self, primaries: ColorPrimaries) -> Self
pub fn color_primaries(self, primaries: ColorPrimaries) -> Self
Sets the color primaries.
Sourcepub fn build(self) -> VideoStreamInfo
pub fn build(self) -> VideoStreamInfo
Builds the VideoStreamInfo.
Trait Implementations§
Source§impl Clone for VideoStreamInfoBuilder
impl Clone for VideoStreamInfoBuilder
Source§fn clone(&self) -> VideoStreamInfoBuilder
fn clone(&self) -> VideoStreamInfoBuilder
Returns a duplicate 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 VideoStreamInfoBuilder
impl Debug for VideoStreamInfoBuilder
Source§impl Default for VideoStreamInfoBuilder
impl Default for VideoStreamInfoBuilder
Source§fn default() -> VideoStreamInfoBuilder
fn default() -> VideoStreamInfoBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VideoStreamInfoBuilder
impl RefUnwindSafe for VideoStreamInfoBuilder
impl Send for VideoStreamInfoBuilder
impl Sync for VideoStreamInfoBuilder
impl Unpin for VideoStreamInfoBuilder
impl UnsafeUnpin for VideoStreamInfoBuilder
impl UnwindSafe for VideoStreamInfoBuilder
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