pub struct VideoDecoderBuilder { /* private fields */ }
Expand description
Builder for the video decoder.
Implementations§
Source§impl VideoDecoderBuilder
impl VideoDecoderBuilder
Sourcepub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
pub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
Set a decoder option.
Sourcepub fn time_base(self, time_base: TimeBase) -> Self
pub fn time_base(self, time_base: TimeBase) -> Self
Set decoder time base (all input packets will be rescaled into this time base). The default time base is in microseconds.
Sourcepub fn build(self) -> Result<VideoDecoder, Error>
pub fn build(self) -> Result<VideoDecoder, Error>
Build the decoder.
Trait Implementations§
Source§impl Drop for VideoDecoderBuilder
impl Drop for VideoDecoderBuilder
impl Send for VideoDecoderBuilder
impl Sync for VideoDecoderBuilder
Auto Trait Implementations§
impl Freeze for VideoDecoderBuilder
impl RefUnwindSafe for VideoDecoderBuilder
impl Unpin for VideoDecoderBuilder
impl UnwindSafe for VideoDecoderBuilder
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