Struct rsmpeg::avcodec::AVPacket [−][src]
pub struct AVPacket { /* fields omitted */ }
Implementations
impl AVPacket
[src]
impl AVPacket
[src]pub fn as_ptr(&self) -> *const AVPacket
[src]
pub fn as_mut_ptr(&mut self) -> *mut AVPacket
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVPacket>)
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVPacket>)
[src]Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
pub unsafe fn from_raw(raw: NonNull<AVPacket>) -> Self
[src]
pub unsafe fn from_raw(raw: NonNull<AVPacket>) -> Self
[src]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>
[src]
impl AVPacket
[src]
impl AVPacket
[src]pub fn set_stream_index(&mut self, stream_index: i32)
[src]
impl AVPacket
[src]
impl AVPacket
[src]pub fn rescale_ts(&mut self, from: AVRational, to: AVRational)
[src]
pub fn rescale_ts(&mut self, from: AVRational, to: AVRational)
[src]Convert valid timing fields (timestamps / durations) in a packet from
one timebase to another. Timestamps with unknown values
(AV_NOPTS_VALUE
) will be ignored.