Struct ffmpeg_the_third::codec::packet::packet::Packet

source ·
pub struct Packet(/* private fields */);

Implementations§

source§

impl Packet

source

pub unsafe fn is_empty(&self) -> bool

source§

impl Packet

source

pub fn empty() -> Self

source

pub fn new(size: usize) -> Self

source

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

source

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

source

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

source

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

source

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

source

pub fn flags(&self) -> Flags

source

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

source

pub fn is_key(&self) -> bool

source

pub fn is_corrupt(&self) -> bool

source

pub fn stream(&self) -> usize

source

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

source

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

source

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

source

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

source

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

source

pub fn size(&self) -> usize

source

pub fn duration(&self) -> i64

source

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

source

pub fn position(&self) -> isize

source

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

source

pub fn convergence(&self) -> isize

source

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

source

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

source

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

source

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

source

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

source

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

Trait Implementations§

source§

impl Clone for Packet

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Drop for Packet

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Mut for Packet

source§

impl Ref for Packet

source§

impl Send for Packet

source§

impl Sync for Packet

Auto Trait Implementations§

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.