Skip to main content

OutputFormatContext

Struct OutputFormatContext 

Source
pub struct OutputFormatContext { /* private fields */ }

Implementations§

Source§

impl OutputFormatContext

Source

pub fn new( _format_name: Option<&str>, _filename: &Path, ) -> Result<Self, AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn nb_streams(&self) -> u32

Source

pub fn oformat_flags(&self) -> c_int

Source

pub fn is_nofile(&self) -> bool

Source

pub fn open_io(&mut self, _path: &Path) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn set_custom_io( &mut self, _sink: impl IoSink + 'static, ) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn write_header(&mut self) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn write_trailer(&mut self) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn close_io(&mut self)

Source

pub fn new_stream(&mut self, _codec: Option<&Codec>) -> Result<usize, AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn stream_time_base(&self, _idx: usize) -> AVRational

Source

pub fn set_stream_time_base(&mut self, _idx: usize, _time_base: AVRational)

Source

pub fn apply_stream_params_from_context( &mut self, _idx: usize, _ctx: &CodecContext, ) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn copy_stream_params( &mut self, _idx: usize, _src: CodecParameters<'_>, ) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn set_opt(&mut self, _key: &CStr, _value: &CStr) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn write_interleaved(&mut self, _pkt: &mut Packet) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn set_metadata(&mut self, _key: &str, _value: &str) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn add_attachment_stream( &mut self, _data: &[u8], _mime_type: &str, _filename: &str, ) -> Result<usize, AvError>

§Errors

Stub; never executed on docs.rs.

Source

pub fn set_chapters( &mut self, _chapters: &[ChapterSpec<'_>], ) -> Result<(), AvError>

§Errors

Stub; never executed on docs.rs.

Trait Implementations§

Source§

impl Debug for OutputFormatContext

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for OutputFormatContext

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Send for OutputFormatContext

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.