[−][src]Struct ac_ffmpeg::packet::Packet
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,