Struct y4m::EncoderBuilder [−][src]
pub struct EncoderBuilder { /* fields omitted */ }Encoder builder. Allows to set y4m file parameters using builder pattern.
Methods
impl EncoderBuilder[src]
impl EncoderBuilderpub fn new(width: usize, height: usize, framerate: Ratio) -> EncoderBuilder[src]
pub fn new(width: usize, height: usize, framerate: Ratio) -> EncoderBuilderCreate a new encoder builder.
pub fn with_colorspace(self, colorspace: Colorspace) -> Self[src]
pub fn with_colorspace(self, colorspace: Colorspace) -> SelfSpecify file colorspace.
pub fn write_header<W: Write>(self, writer: &mut W) -> Result<Encoder<W>, Error>[src]
pub fn write_header<W: Write>(self, writer: &mut W) -> Result<Encoder<W>, Error>Write header to the stream and create encoder instance.
Trait Implementations
impl Debug for EncoderBuilder[src]
impl Debug for EncoderBuilderAuto Trait Implementations
impl Send for EncoderBuilder
impl Send for EncoderBuilderimpl Sync for EncoderBuilder
impl Sync for EncoderBuilder