Struct ParametersRef

Source
pub struct ParametersRef<'p> { /* private fields */ }

Implementations§

Source§

impl<'p> ParametersRef<'p>

Source

pub unsafe fn from_raw(ptr: *const AVCodecParameters) -> Option<Self>

§Safety

Ensure that

  • ptr is either null or valid,
  • the shared borrow represented by ptr follows Rust borrow rules and
  • the lifetime of the returned struct is correctly bounded.
Source

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

Exposes a pointer to the contained AVCodecParameters for FFI purposes.

This is guaranteed to be a non-null pointer.

Source§

impl<'p> ParametersRef<'p>

Source

pub fn medium(&self) -> Type

Source§

impl<'p> ParametersRef<'p>

Source

pub fn id(&self) -> Id

Source§

impl<'p> ParametersRef<'p>

Source

pub fn bit_rate(&self) -> i64

Source§

impl<'p> ParametersRef<'p>

Source§

impl<'p> ParametersRef<'p>

Source§

impl<'p> ParametersRef<'p>

Source

pub fn profile(&self) -> i32

Source§

impl<'p> ParametersRef<'p>

Source

pub fn level(&self) -> i32

Source§

impl<'p> ParametersRef<'p>

Source

pub fn width(&self) -> u32

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn height(&self) -> u32

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn sample_aspect_ratio(&self) -> Rational

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn framerate(&self) -> Rational

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn field_order(&self) -> FieldOrder

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn color_range(&self) -> Range

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn color_primaries(&self) -> Primaries

Video only

Source§

impl<'p> ParametersRef<'p>

Source§

impl<'p> ParametersRef<'p>

Source

pub fn color_space(&self) -> Space

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn chroma_location(&self) -> Location

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn video_delay(&self) -> i32

Video only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn ch_layout(&self) -> ChannelLayout<'_>

Audio only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn sample_rate(&self) -> u32

Audio only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn block_align(&self) -> u32

Audio only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn frame_size(&self) -> u32

Audio only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn initial_padding(&self) -> u32

Audio only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn trailing_padding(&self) -> u32

Audio only

Source§

impl<'p> ParametersRef<'p>

Source

pub fn seek_preroll(&self) -> u32

Audio only

Trait Implementations§

Source§

impl<'p> AsPtr<AVCodecParameters> for ParametersRef<'p>

Source§

fn as_ptr(&self) -> *const AVCodecParameters

Returns a *const raw pointer to the underlying FFmpeg type.

Auto Trait Implementations§

§

impl<'p> Freeze for ParametersRef<'p>

§

impl<'p> RefUnwindSafe for ParametersRef<'p>

§

impl<'p> !Send for ParametersRef<'p>

§

impl<'p> !Sync for ParametersRef<'p>

§

impl<'p> Unpin for ParametersRef<'p>

§

impl<'p> UnwindSafe for ParametersRef<'p>

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.