Struct y4m::EncoderBuilder
source · pub struct EncoderBuilder { /* private fields */ }
Expand description
Encoder builder. Allows to set y4m file parameters using builder pattern.
Implementations§
source§impl EncoderBuilder
impl EncoderBuilder
sourcepub fn new(width: usize, height: usize, framerate: Ratio) -> EncoderBuilder
pub fn new(width: usize, height: usize, framerate: Ratio) -> EncoderBuilder
Create a new encoder builder.
sourcepub fn with_colorspace(self, colorspace: Colorspace) -> Self
pub fn with_colorspace(self, colorspace: Colorspace) -> Self
Specify file colorspace.
sourcepub fn with_pixel_aspect(self, pixel_aspect: Ratio) -> Self
pub fn with_pixel_aspect(self, pixel_aspect: Ratio) -> Self
Specify file pixel aspect.
sourcepub fn append_vendor_extension(self, x_option: VendorExtensionString) -> Self
pub fn append_vendor_extension(self, x_option: VendorExtensionString) -> Self
Add vendor extension.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EncoderBuilder
impl Send for EncoderBuilder
impl Sync for EncoderBuilder
impl Unpin for EncoderBuilder
impl UnwindSafe for EncoderBuilder
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