logo
pub struct Collector { /* private fields */ }
Expand description

Collect frames that will be encoded

Note that writing will finish only when the collector is dropped. Collect frames on another thread, or call drop(collector) before calling writer.write()!

Implementations

Frame index starts at 0.

Set each frame (index) only once, but you can set them in any order.

Presentation timestamp is time in seconds (since file start at 0) when this frame is to be displayed.

If the first frame doesn’t start at pts=0, the delay will be used for the last frame.

Read and decode a PNG file from disk.

Frame index starts at 0.

Presentation timestamp is time in seconds (since file start at 0) when this frame is to be displayed.

If the first frame doesn’t start at pts=0, the delay will be used for the last frame.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.