pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option<()>) -> 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 new_with_codec(codec: Codec) -> Self
pub fn from_parameters<P: AsPtr<AVCodecParameters>>( parameters: P, ) -> Result<Self, Error>
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: AsPtr<AVCodecParameters>>( &mut self, parameters: P, ) -> Result<(), Error>
Trait Implementations§
Source§impl AsMutPtr<AVCodecContext> for Context
impl AsMutPtr<AVCodecContext> for Context
Source§fn as_mut_ptr(&mut self) -> *mut AVCodecContext
fn as_mut_ptr(&mut self) -> *mut AVCodecContext
Returns a *mut raw pointer to the underlying FFmpeg type.
Source§impl AsPtr<AVCodecContext> for Context
AVCodecContext in Context is the target of option operations.
impl AsPtr<AVCodecContext> for Context
AVCodecContext in Context is the target of option operations.
Source§fn as_ptr(&self) -> *const AVCodecContext
fn as_ptr(&self) -> *const AVCodecContext
Returns a *const raw pointer to the underlying FFmpeg type.
Source§impl Settable<AVCodecContext> for Context
impl Settable<AVCodecContext> for Context
fn set<V: 'static>(&mut self, name: &str, value: &V) -> Result<(), Error>
fn set_str(&mut self, name: &str, value: &str) -> Result<(), Error>
fn set_int(&mut self, name: &str, value: i64) -> Result<(), Error>
fn set_double(&mut self, name: &str, value: f64) -> Result<(), Error>
fn set_rational<V: Into<Rational>>( &mut self, name: &str, value: V, ) -> Result<(), Error>
fn set_image_size(&mut self, name: &str, w: u32, h: u32) -> Result<(), Error>
fn set_pixel_format(&mut self, name: &str, format: Pixel) -> Result<(), Error>
fn set_sample_format(&mut self, name: &str, format: Sample) -> Result<(), Error>
fn set_channel_layout( &mut self, name: &str, layout: ChannelLayoutMask, ) -> Result<(), Error>
impl Send for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Sync for Context
impl Unpin for Context
impl UnsafeUnpin 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