pub struct AVCodecParametersRef<'a> { /* private fields */ }Implementations§
Source§impl<'a> AVCodecParametersRef<'a>
impl<'a> AVCodecParametersRef<'a>
Sourcepub unsafe fn from_raw(raw: NonNull<AVCodecParameters>) -> Self
pub unsafe fn from_raw(raw: NonNull<AVCodecParameters>) -> Self
§Safety
This function should only be called when raw is valid and can
be dropped. Please ensure its lifetime when used.
Methods from Deref<Target = AVCodecParameters>§
pub fn as_ptr(&self) -> *const AVCodecParameters
Sourcepub fn codec_type(&self) -> AVMediaType
pub fn codec_type(&self) -> AVMediaType
Get the codec type.
Sourcepub fn ch_layout(&self) -> AVChannelLayoutRef<'_>
pub fn ch_layout(&self) -> AVChannelLayoutRef<'_>
Get channel layout
Trait Implementations§
Source§impl<'a> Deref for AVCodecParametersRef<'a>
impl<'a> Deref for AVCodecParametersRef<'a>
Source§impl<'a> Drop for AVCodecParametersRef<'a>
impl<'a> Drop for AVCodecParametersRef<'a>
impl<'a> Send for AVCodecParametersRef<'a>
Auto Trait Implementations§
impl<'a> !Sync for AVCodecParametersRef<'a>
impl<'a> Freeze for AVCodecParametersRef<'a>
impl<'a> RefUnwindSafe for AVCodecParametersRef<'a>
impl<'a> Unpin for AVCodecParametersRef<'a>
impl<'a> UnsafeUnpin for AVCodecParametersRef<'a>
impl<'a> UnwindSafe for AVCodecParametersRef<'a>
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