Struct gifski::Collector[][src]

pub struct Collector { /* fields omitted */ }
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

Performs the conversion.

Performs the conversion.

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.