Struct ufmf::UFMFWriter
source · pub struct UFMFWriter<F: Write + Seek> { /* private fields */ }
Implementations§
source§impl<F> UFMFWriter<F>
impl<F> UFMFWriter<F>
pub fn new( f: F, max_width: u16, max_height: u16, pixel_format: PixFmt, frame0: Option<&DynamicFrame> ) -> UFMFResult<Self>
pub fn add_frame( &mut self, origframe: &DynamicFrame, point_data: &[RectFromCenter] ) -> UFMFResult<Vec<RectFromCorner>>
pub fn add_keyframe<FRAME, FMT>(
&mut self,
keyframe_type: &[u8],
frame: &FRAME
) -> UFMFResult<()>where
FRAME: ImageStrideTime<FMT>,
FMT: PixelFormat,
source§impl<F> UFMFWriter<F>
impl<F> UFMFWriter<F>
sourcepub fn close(&mut self) -> UFMFResult<F>
pub fn close(&mut self) -> UFMFResult<F>
Close the writer.
Ideally, this is called prior to dropping to prevent the possibility of silently ignoring errors.
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for UFMFWriter<F>where
F: Freeze,
impl<F> RefUnwindSafe for UFMFWriter<F>where
F: RefUnwindSafe,
impl<F> Send for UFMFWriter<F>where
F: Send,
impl<F> Sync for UFMFWriter<F>where
F: Sync,
impl<F> Unpin for UFMFWriter<F>where
F: Unpin,
impl<F> UnwindSafe for UFMFWriter<F>where
F: UnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more