pub struct AVPacket { /* private fields */ }
Implementations§
source§impl AVPacket
impl AVPacket
pub fn as_ptr(&self) -> *const AVPacket
pub fn as_mut_ptr(&mut self) -> *mut AVPacket
sourcepub unsafe fn set_ptr(&mut self, ptr: NonNull<AVPacket>)
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVPacket>)
§Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
sourcepub unsafe fn from_raw(raw: NonNull<AVPacket>) -> Self
pub unsafe fn from_raw(raw: NonNull<AVPacket>) -> Self
§Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
pub fn into_raw(self) -> NonNull<AVPacket>
source§impl AVPacket
impl AVPacket
sourcepub fn rescale_ts(&mut self, from: AVRational, to: AVRational)
pub fn rescale_ts(&mut self, from: AVRational, to: AVRational)
Convert valid timing fields (timestamps / durations) in a packet from
one timebase to another. Timestamps with unknown values
(AV_NOPTS_VALUE
) will be ignored.
Trait Implementations§
source§impl UnsafeDerefMut for AVPacket
impl UnsafeDerefMut for AVPacket
impl Send for AVPacket
Auto Trait Implementations§
impl Freeze for AVPacket
impl RefUnwindSafe for AVPacket
impl !Sync for AVPacket
impl Unpin for AVPacket
impl UnwindSafe for AVPacket
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