[][src]Struct ac_ffmpeg::packet::Packet

pub struct Packet { /* fields omitted */ }

Packet with immutable data.

Implementations

impl Packet[src]

pub fn stream_index(&self) -> usize[src]

Get stream index.

pub fn with_stream_index(self, index: usize) -> Packet[src]

Set stream index.

pub fn time_base(&self) -> TimeBase[src]

Get packet time base.

pub fn with_time_base(self, time_base: TimeBase) -> Self[src]

Set packet time base. (This will rescale the current timestamps into a given time base.)

pub fn pts(&self) -> Timestamp[src]

Get packet presentation timestamp.

pub fn with_pts(self, pts: Timestamp) -> Self[src]

Set packet presentation timestamp.

pub fn dts(&self) -> Timestamp[src]

Get packet decoding timestamp.

pub fn with_dts(self, dts: Timestamp) -> Self[src]

Set packet decoding timestamp.

pub fn is_key(&self) -> bool[src]

Check if the key flag is set.

pub fn data(&self) -> &[u8][src]

Get packet data.

pub fn into_mut(self) -> PacketMut[src]

Make this packet mutable. If there are no other references to the packet data, the mutable packet will be created without copying the data.

Trait Implementations

impl Clone for Packet[src]

impl Drop for Packet[src]

impl Send for Packet[src]

impl Sync for Packet[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.