pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option<Rc<dyn Any>>) -> Self
pub unsafe fn as_ptr(&self) -> *const AVCodecContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVCodecContext
Source§impl Context
impl Context
pub fn new() -> Self
pub fn decoder(self) -> Decoder
pub fn encoder(self) -> Encoder
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: Into<Parameters>>( &mut self, parameters: P, ) -> Result<(), Error>
Trait Implementations§
impl Send for Context
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl !Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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