pub struct Packet(/* private fields */);
Implementations§
source§impl Packet
impl Packet
pub fn empty() -> Self
pub fn new(size: usize) -> Self
pub fn copy(data: &[u8]) -> Self
pub fn borrow(data: &[u8]) -> Borrow<'_>
pub fn shrink(&mut self, size: usize)
pub fn grow(&mut self, size: usize)
pub fn rescale_ts<S, D>(&mut self, source: S, destination: D)
pub fn flags(&self) -> Flags
pub fn set_flags(&mut self, value: Flags)
pub fn is_key(&self) -> bool
pub fn is_corrupt(&self) -> bool
pub fn stream(&self) -> usize
pub fn set_stream(&mut self, index: usize)
pub fn pts(&self) -> Option<i64>
pub fn set_pts(&mut self, value: Option<i64>)
pub fn dts(&self) -> Option<i64>
pub fn set_dts(&mut self, value: Option<i64>)
pub fn size(&self) -> usize
pub fn duration(&self) -> i64
pub fn set_duration(&mut self, value: i64)
pub fn position(&self) -> isize
pub fn set_position(&mut self, value: isize)
pub fn convergence(&self) -> isize
pub fn side_data(&self) -> SideDataIter<'_> ⓘ
pub fn data(&self) -> Option<&[u8]>
pub fn data_mut(&mut self) -> Option<&mut [u8]>
pub fn read(&mut self, format: &mut Input) -> Result<(), Error>
pub fn write(&self, format: &mut Output) -> Result<bool, Error>
pub fn write_interleaved(&self, format: &mut Output) -> Result<(), Error>
Trait Implementations§
impl Send for Packet
impl Sync for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more