[][src]Struct ffmpeg_next::codec::packet::packet::Packet

pub struct Packet(_);

Implementations

impl Packet[src]

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

impl Packet[src]

pub fn empty() -> Self[src]

pub fn new(size: usize) -> Self[src]

pub fn copy(data: &[u8]) -> Self[src]

pub fn borrow(data: &[u8]) -> Borrow<'_>[src]

pub fn shrink(&mut self, size: usize)[src]

pub fn grow(&mut self, size: usize)[src]

pub fn rescale_ts<S, D>(&mut self, source: S, destination: D) where
    S: Into<Rational>,
    D: Into<Rational>, 
[src]

pub fn flags(&self) -> Flags[src]

pub fn set_flags(&mut self, value: Flags)[src]

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

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

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

pub fn set_stream(&mut self, index: usize)[src]

pub fn pts(&self) -> Option<i64>[src]

pub fn set_pts(&mut self, value: Option<i64>)[src]

pub fn dts(&self) -> Option<i64>[src]

pub fn set_dts(&mut self, value: Option<i64>)[src]

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

pub fn duration(&self) -> i64[src]

pub fn set_duration(&mut self, value: i64)[src]

pub fn position(&self) -> isize[src]

pub fn set_position(&mut self, value: isize)[src]

pub fn convergence(&self) -> isize[src]

pub fn side_data(&self) -> SideDataIter<'_>

Notable traits for SideDataIter<'a>

impl<'a> Iterator for SideDataIter<'a> type Item = SideData<'a>;
[src]

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

pub fn data_mut(&mut self) -> Option<&mut [u8]>[src]

pub fn read(&mut self, format: &mut Input) -> Result<(), Error>[src]

pub fn write(&self, format: &mut Output) -> Result<bool, Error>[src]

pub fn write_interleaved(&self, format: &mut Output) -> Result<bool, Error>[src]

Trait Implementations

impl Clone for Packet[src]

impl Drop for Packet[src]

impl Mut for Packet[src]

impl Ref 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.