Struct rsmpeg::avformat::AVFormatContextOutput [−][src]
pub struct AVFormatContextOutput { /* fields omitted */ }
Implementations
impl AVFormatContextOutput
[src]
impl AVFormatContextOutput
[src]pub fn as_ptr(&self) -> *const AVFormatContext
[src]
pub fn as_mut_ptr(&mut self) -> *mut AVFormatContext
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVFormatContext>)
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVFormatContext>)
[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<AVFormatContext>) -> Self
[src]
pub unsafe fn from_raw(raw: NonNull<AVFormatContext>) -> 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<AVFormatContext>
[src]
impl AVFormatContextOutput
[src]
impl AVFormatContextOutput
[src]pub fn create(filename: &CStr) -> Result<Self>
[src]
pub fn create(filename: &CStr) -> Result<Self>
[src]Open a file and create a AVFormatContextOutput
instance of that file.
pub fn write_header(&mut self) -> Result<()>
[src]
pub fn write_header(&mut self) -> Result<()>
[src]Allocate the stream private data and write the stream header to an output media file.
pub fn write_trailer(&mut self) -> Result<()>
[src]
pub fn write_trailer(&mut self) -> Result<()>
[src]Write the stream trailer to an output media file and free the file private data.
pub fn dump(&mut self, index: i32, filename: &CStr) -> Result<()>
[src]
pub fn dump(&mut self, index: i32, filename: &CStr) -> Result<()>
[src]Dump ffi::AVFormatContext
info in the “FFmpeg” way.
The filename here is just for info printing, it’s really doesn’t matter.
pub fn write_frame(&mut self, packet: &mut AVPacket) -> Result<()>
[src]
pub fn write_frame(&mut self, packet: &mut AVPacket) -> Result<()>
[src]Write a packet to an output media file.
This function passes the packet directly to the muxer, without any
buffering or reordering. The caller is responsible for correctly
interleaving the packets if the format requires it. Callers that want
libavformat to handle the interleaving should call
Self::interleaved_write_frame()
instead of this function.
pub fn interleaved_write_frame(&mut self, packet: &mut AVPacket) -> Result<()>
[src]
pub fn interleaved_write_frame(&mut self, packet: &mut AVPacket) -> Result<()>
[src]Write a packet to an output media file ensuring correct interleaving.
This function will buffer the packets internally as needed to make sure
the packets in the output file are properly interleaved in the order of
increasing dts. Callers doing their own interleaving should call
Self::write_frame()
instead of this function.
impl<'stream> AVFormatContextOutput
[src]
impl<'stream> AVFormatContextOutput
[src]pub fn streams(&'stream self) -> AVStreamRefs<'stream>
[src]
pub fn streams(&'stream self) -> AVStreamRefs<'stream>
[src]Return Iterator of AVStreamRef
.
pub fn oformat(&'stream self) -> AVOutputFormatRef<'stream>
[src]
pub fn oformat(&'stream self) -> AVOutputFormatRef<'stream>
[src]Get Iterator of all AVOutputFormat
s in the ffi::AVFormatContext
.
pub fn new_stream(
&'stream mut self,
codec: Option<&AVCodec>
) -> AVStreamMut<'stream>
[src]
pub fn new_stream(
&'stream mut self,
codec: Option<&AVCodec>
) -> AVStreamMut<'stream>
[src]Add a new stream to a media file.
Trait Implementations
impl Deref for AVFormatContextOutput
[src]
impl Deref for AVFormatContextOutput
[src]type Target = AVFormatContext
type Target = AVFormatContext
The resulting type after dereferencing.