Struct x264::Encoder[][src]

pub struct Encoder { /* fields omitted */ }

Encodes video.

Methods

impl Encoder
[src]

Creates a new builder with default options.

For more options see Setup::new.

Feeds a frame to the encoder.

Panics

Panics if there is a mismatch between the image and the encoder regarding width, height or colorspace.

Feeds a frame to the encoder.

Unsafety

The caller must ensure that the width, height and colorspace of the image are the same as that of the encoder.

Gets the video headers, which should be sent first.

Begins flushing the encoder, to handle any delayed frames.

let mut flush = encoder.flush();

while let Some(result) = flush.next() {
    if let Ok((data, picture)) = result {
        // Handle data.
    }
}

The width required of any input images.

The height required of any input images.

The encoding required of any input images.

Trait Implementations

impl Drop for Encoder
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Encoder

impl !Sync for Encoder