scuffle_ffmpeg::stream

Struct Stream

Source
pub struct Stream<'a>(/* private fields */);

Implementations§

Source§

impl<'a> Stream<'a>

Source

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

Source

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

Source§

impl<'a> Stream<'a>

Source

pub fn index(&self) -> i32

Source

pub fn id(&self) -> i32

Source

pub fn codec_parameters(&self) -> Option<&'a AVCodecParameters>

Source

pub fn time_base(&self) -> AVRational

Source

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

Source

pub fn start_time(&self) -> Option<i64>

Source

pub fn set_start_time(&mut self, start_time: Option<i64>)

Source

pub fn duration(&self) -> Option<i64>

Source

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

Source

pub fn nb_frames(&self) -> Option<i64>

Source

pub fn set_nb_frames(&mut self, nb_frames: i64)

Source

pub fn disposition(&self) -> i32

Source

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

Source

pub fn discard(&self) -> AVDiscard

Source

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

Source

pub fn sample_aspect_ratio(&self) -> AVRational

Source

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

Source

pub fn metadata(&self) -> Const<'_, Dictionary>

Source

pub fn metadata_mut(&mut self) -> Mut<'_, Dictionary>

Source

pub fn avg_frame_rate(&self) -> AVRational

Source

pub fn r_frame_rate(&self) -> AVRational

Source

pub fn format_context(&self) -> &'a AVFormatContext

Trait Implementations§

Source§

impl Debug for Stream<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Stream<'a>

§

impl<'a> RefUnwindSafe for Stream<'a>

§

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

§

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

§

impl<'a> Unpin for Stream<'a>

§

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