Struct rsmpeg::avcodec::AVPacket[][src]

pub struct AVPacket { /* fields omitted */ }

Implementations

impl AVPacket[src]

pub fn as_ptr(&self) -> *const AVPacket[src]

pub fn as_mut_ptr(&mut self) -> *mut AVPacket[src]

pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVPacket>)[src]

Safety

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

pub unsafe fn from_raw(raw: NonNull<AVPacket>) -> Self[src]

Safety

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

pub fn into_raw(self) -> NonNull<AVPacket>[src]

impl AVPacket[src]

pub fn set_stream_index(&mut self, stream_index: i32)[src]

impl AVPacket[src]

pub fn new() -> Self[src]

Create an AVPacket and set its fields to default values.

pub fn rescale_ts(&mut self, from: AVRational, to: AVRational)[src]

Convert valid timing fields (timestamps / durations) in a packet from one timebase to another. Timestamps with unknown values (AV_NOPTS_VALUE) will be ignored.

Trait Implementations

impl Debug for AVPacket[src]

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

Formats the value using the given formatter. Read more

impl Default for AVPacket[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl Deref for AVPacket[src]

type Target = AVPacket

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl Drop for AVPacket[src]

fn drop(&mut self)[src]

Free the packet, if the packet is reference counted, it will be unreferenced first.

Auto Trait Implementations

impl RefUnwindSafe for AVPacket

impl !Send for AVPacket

impl !Sync for AVPacket

impl Unpin for AVPacket

impl UnwindSafe for AVPacket

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.