pub struct Decoder(pub Context);
Tuple Fields§
§0: Context
Implementations§
Source§impl Decoder
impl Decoder
pub fn open(self) -> Result<Opened, Error>
pub fn open_as<T, D: Decoder<T>>(self, codec: D) -> Result<Opened, Error>
pub fn open_as_with<T, D: Decoder<T>>( self, codec: D, options: Dictionary<'_>, ) -> Result<Opened, Error>
pub fn video(self) -> Result<Video, Error>
pub fn audio(self) -> Result<Audio, Error>
pub fn subtitle(self) -> Result<Subtitle, Error>
pub fn conceal(&mut self, value: Conceal)
pub fn check(&mut self, value: Check)
pub fn skip_loop_filter(&mut self, value: Discard)
pub fn skip_idct(&mut self, value: Discard)
pub fn skip_frame(&mut self, value: Discard)
pub fn time_base(&self) -> Rational
Methods from Deref<Target = Context>§
pub unsafe fn as_ptr(&self) -> *const AVCodecContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVCodecContext
pub fn codec(&self) -> Option<Codec>
pub fn medium(&self) -> Type
pub fn set_flags(&mut self, value: Flags)
pub fn id(&self) -> Id
pub fn compliance(&mut self, value: Compliance)
pub fn debug(&mut self, value: Debug)
pub fn set_threading(&mut self, config: Config)
pub fn threading(&self) -> Config
pub fn set_parameters<P: AsPtr<AVCodecParameters>>( &mut self, parameters: P, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decoder
impl !RefUnwindSafe for Decoder
impl Send for Decoder
impl !Sync for Decoder
impl Unpin for Decoder
impl !UnwindSafe for Decoder
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