pub struct Output { /* private fields */ }Implementations§
Source§impl Output
impl Output
pub unsafe fn wrap(ptr: *mut AVFormatContext) -> Self
pub unsafe fn as_ptr(&self) -> *const AVFormatContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVFormatContext
Source§impl Output
impl Output
pub fn format(&self) -> Output
pub fn write_header(&mut self) -> Result<(), Error>
pub fn write_header_with( &mut self, options: Dictionary<'_>, ) -> Result<Dictionary<'_>, Error>
pub fn write_trailer(&mut self) -> Result<(), Error>
pub fn add_stream<E: Encoder>( &mut self, codec: E, ) -> Result<StreamMut<'_>, Error>
pub fn add_stream_with( &mut self, context: &Context, ) -> Result<StreamMut<'_>, Error>
pub fn add_chapter<R: Into<Rational>, S: AsRef<str>>( &mut self, id: i64, time_base: R, start: i64, end: i64, title: S, ) -> Result<ChapterMut<'_>, Error>
pub fn set_metadata(&mut self, dictionary: Dictionary<'_>)
Trait Implementations§
Auto Trait Implementations§
impl !Sync for Output
impl Freeze for Output
impl RefUnwindSafe for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more