Struct StreamMut

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

Implementations§

Source§

impl<'a> StreamMut<'a>

Source

pub unsafe fn wrap(context: &mut Context, index: usize) -> StreamMut<'_>

Source

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

Source§

impl<'a> StreamMut<'a>

Source

pub fn set_time_base<R: Into<Rational>>(&mut self, value: R)

Source

pub fn set_rate<R: Into<Rational>>(&mut self, value: R)

Source

pub fn set_avg_frame_rate<R: Into<Rational>>(&mut self, value: R)

Source

pub fn parameters_mut(&mut self) -> ParametersMut<'_>

Source

pub fn set_parameters<P: AsPtr<AVCodecParameters>>(&mut self, parameters: P)

Source

pub fn copy_parameters_from_context(&mut self, ctx: &Context)

Source

pub fn set_metadata(&mut self, metadata: Dictionary<'_>)

Methods from Deref<Target = Stream<'a>>§

Source

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

Source

pub fn id(&self) -> i32

Source

pub fn parameters(&self) -> ParametersRef<'_>

Source

pub fn index(&self) -> usize

Source

pub fn time_base(&self) -> Rational

Source

pub fn start_time(&self) -> i64

Source

pub fn duration(&self) -> i64

Source

pub fn frames(&self) -> i64

Source

pub fn disposition(&self) -> Disposition

Source

pub fn discard(&self) -> Discard

Source

pub fn side_data(&self) -> SideDataIter<'_>

Source

pub fn rate(&self) -> Rational

Source

pub fn avg_frame_rate(&self) -> Rational

Source

pub fn metadata(&self) -> DictionaryRef<'_>

Trait Implementations§

Source§

impl<'a> Deref for StreamMut<'a>

Source§

type Target = Stream<'a>

The resulting type after dereferencing.
Source§

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

Dereferences the value.

Auto Trait Implementations§

§

impl<'a> Freeze for StreamMut<'a>

§

impl<'a> RefUnwindSafe for StreamMut<'a>

§

impl<'a> !Send for StreamMut<'a>

§

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

§

impl<'a> Unpin for StreamMut<'a>

§

impl<'a> !UnwindSafe for StreamMut<'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.