pub struct Packet { /* private fields */ }Implementations§
Source§impl Packet
impl Packet
pub fn stream_index(&self) -> c_int
pub fn pts(&self) -> i64
pub fn dts(&self) -> i64
pub fn size(&self) -> c_int
pub fn flags(&self) -> c_int
pub fn duration(&self) -> i64
pub fn set_stream_index(&mut self, _stream_index: c_int)
pub fn set_pts(&mut self, _pts: i64)
pub fn set_dts(&mut self, _dts: i64)
pub fn set_duration(&mut self, _duration: i64)
pub fn rescale_ts(&mut self, _src_tb: AVRational, _dst_tb: AVRational)
pub fn new_side_data( &mut self, _kind: AVPacketSideDataType, _size: usize, ) -> Option<&mut [u8]>
pub fn unref(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !Sync for Packet
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Unpin for Packet
impl UnsafeUnpin 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