Skip to main content

AVStreamMut

Struct AVStreamMut 

Source
pub struct AVStreamMut<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> AVStreamMut<'a>

Source

pub unsafe fn from_raw(raw: NonNull<AVStream>) -> 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 = AVStream>§

Source

pub fn as_ptr(&self) -> *const AVStream

Source

pub fn as_mut_ptr(&mut self) -> *mut AVStream

Source

pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVStream>)

§Safety

This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.

Source

pub fn set_avg_frame_rate(&mut self, avg_frame_rate: AVRational)

Source

pub fn set_discard(&mut self, discard: i32)

Source

pub fn set_disposition(&mut self, disposition: c_int)

Source

pub fn set_duration(&mut self, duration: i64)

Source

pub fn set_event_flags(&mut self, event_flags: c_int)

Source

pub fn set_sample_aspect_ratio(&mut self, sample_aspect_ratio: AVRational)

Source

pub fn set_time_base(&mut self, time_base: AVRational)

Source

pub fn guess_framerate(&self) -> Option<AVRational>

Guess the frame rate, based on both the container and codec information.

Return None when index is not valid. Some(0/1) if no idea.

Source

pub fn codecpar(&'stream self) -> AVCodecParametersRef<'stream>

Get codec parameters of current stream.

Source

pub fn codecpar_mut(&'stream mut self) -> AVCodecParametersMut<'stream>

Get mutable reference of codec parameters in current stream.

Source

pub fn set_codecpar(&mut self, parameters: AVCodecParameters)

Set codecpar of current stream with given parameters.

Source

pub fn metadata(&'stream self) -> Option<AVDictionaryRef<'stream>>

Get metadata of current stream.

Source

pub fn metadata_mut(&'stream mut self) -> Option<AVDictionaryMut<'stream>>

Get mutable reference of metadata in current stream.

Source

pub fn set_metadata(&mut self, dict: Option<AVDictionary>)

Set metadata of current AVStream.

Trait Implementations§

Source§

impl<'a> Deref for AVStreamMut<'a>

Source§

type Target = AVStream

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<'a> DerefMut for AVStreamMut<'a>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'a> Drop for AVStreamMut<'a>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl<'a> Send for AVStreamMut<'a>

Auto Trait Implementations§

§

impl<'a> !Sync for AVStreamMut<'a>

§

impl<'a> Freeze for AVStreamMut<'a>

§

impl<'a> RefUnwindSafe for AVStreamMut<'a>

§

impl<'a> Unpin for AVStreamMut<'a>

§

impl<'a> UnsafeUnpin for AVStreamMut<'a>

§

impl<'a> UnwindSafe for AVStreamMut<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.