pub struct Y4MWriter { /* private fields */ }Expand description
An opinionated Y4M writer.
Saves only progressive video with full color range.
Implementations§
Source§impl Y4MWriter
impl Y4MWriter
pub fn from_writer(wtr: Box<dyn Write>, opts: Y4MOptions) -> Self
pub fn write_dynamic_frame(&mut self, frame: &DynamicFrame<'_>) -> Result<()>
pub fn flush(&mut self) -> Result<()>
pub fn into_inner(self) -> Box<dyn Write>
Auto Trait Implementations§
impl Freeze for Y4MWriter
impl !RefUnwindSafe for Y4MWriter
impl !Send for Y4MWriter
impl !Sync for Y4MWriter
impl Unpin for Y4MWriter
impl UnsafeUnpin for Y4MWriter
impl !UnwindSafe for Y4MWriter
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