Struct rsmpeg::avformat::AVFormatContextOutput[][src]

pub struct AVFormatContextOutput { /* fields omitted */ }

Implementations

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]

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]

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]

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]

Allocate the stream private data and write the stream header to an output media file.

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]

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]

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]

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]

pub fn streams(&'stream self) -> AVStreamRefs<'stream>[src]

Return Iterator of AVStreamRef.

pub fn oformat(&'stream self) -> AVOutputFormatRef<'stream>[src]

Get Iterator of all AVOutputFormats in the ffi::AVFormatContext.

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]

type Target = AVFormatContext

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl Drop for AVFormatContextOutput[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.