Struct rsmpeg::avcodec::AVCodecParserContext [−][src]
pub struct AVCodecParserContext { /* fields omitted */ }
Implementations
impl AVCodecParserContext
[src]
impl AVCodecParserContext
[src]pub fn as_ptr(&self) -> *const AVCodecParserContext
[src]
pub fn as_mut_ptr(&mut self) -> *mut AVCodecParserContext
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVCodecParserContext>)
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVCodecParserContext>)
[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<AVCodecParserContext>) -> Self
[src]
pub unsafe fn from_raw(raw: NonNull<AVCodecParserContext>) -> 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<AVCodecParserContext>
[src]
impl AVCodecParserContext
[src]
impl AVCodecParserContext
[src]pub fn find(codec_id: AVCodecID) -> Option<Self>
[src]
pub fn find(codec_id: AVCodecID) -> Option<Self>
[src]Allocate a AVCodecParserContext
with given AVCodecID
.
pub fn parse_packet(
&mut self,
codec_context: &mut AVCodecContext,
packet: &mut AVPacket,
data: &[u8]
) -> Result<(bool, usize)>
[src]
pub fn parse_packet(
&mut self,
codec_context: &mut AVCodecContext,
packet: &mut AVPacket,
data: &[u8]
) -> Result<(bool, usize)>
[src]Parse a packet.
Return Err(_)
On failure, bool
field of returned tuple means if
packet is ready, usize
field of returned tuple means the offset of the
data being parsed.
Trait Implementations
impl Deref for AVCodecParserContext
[src]
impl Deref for AVCodecParserContext
[src]type Target = AVCodecParserContext
type Target = AVCodecParserContext
The resulting type after dereferencing.