pub struct Packet(/* private fields */);
Implementations§
Source§impl Packet
impl Packet
pub fn new() -> Result<Self, FfmpegError>
pub fn as_ptr(&self) -> *const AVPacket
pub fn as_mut_ptr(&mut self) -> *mut AVPacket
pub fn stream_index(&self) -> i32
pub fn set_stream_index(&mut self, stream_index: i32)
pub fn pts(&self) -> Option<i64>
pub fn set_pts(&mut self, pts: Option<i64>)
pub fn dts(&self) -> Option<i64>
pub fn set_dts(&mut self, dts: Option<i64>)
pub fn duration(&self) -> Option<i64>
pub fn set_duration(&mut self, duration: Option<i64>)
pub fn rescale_timebase(&mut self, from: AVRational, to: AVRational)
pub fn pos(&self) -> Option<i64>
pub fn set_pos(&mut self, pos: Option<i64>)
pub fn data(&self) -> &[u8] ⓘ
pub fn is_key(&self) -> bool
pub fn is_corrupt(&self) -> bool
pub fn is_discard(&self) -> bool
pub fn is_trusted(&self) -> bool
pub fn is_disposable(&self) -> bool
Trait Implementations§
impl Send for Packet
Safety: Packet
is safe to send between threads.
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl !Sync 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