pub enum SequenceConsumption {
EveryDecodedFrame,
SelectedFramesOnly,
}Expand description
How a generator consumes the sequence it was handed.
This is the one thing a generator must declare that the manifest cannot work
out for itself, and it is deliberately a two-value choice rather than a
per-generator hook: the declaration says which shape the generator has, and
the manifest derives every frame population from it. A generator cannot get
the counts wrong, only the shape — and the shape is checked, because
SelectedFramesOnly must name frames the sequence actually contains.
Getting this wrong in the permissive direction is what makes a filmstrip claim it analyzed five frames when three tiles were rendered and the other two were never looked at.
Variants§
EveryDecodedFrame
Every decoded frame contributed to the result.
True of difference maps and motion history, which measure across the whole decoded sequence, and of storyboards, whose selection is derived by reading every frame.
SelectedFramesOnly
Only the frames the output renders or references contributed.
True of a filmstrip: its tiles are chosen by position in the sequence, and a frame that backs no tile is decoded but never examined.
Trait Implementations§
Source§impl Clone for SequenceConsumption
impl Clone for SequenceConsumption
Source§fn clone(&self) -> SequenceConsumption
fn clone(&self) -> SequenceConsumption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more