pub fn frames(
assets: &mut Assets,
images: impl IntoIterator<Item = Image>,
seconds_ago: Option<&[f64]>,
) -> Result<State>Available on crate feature
images only.Expand description
Build a frame array in caller-supplied oldest-first order and attach its images.
Timestamps are preserved, not sorted. Finite values are required by JSON; negative and nonmonotonic values remain allowed like the Python reference. Validation occurs before mutating the asset registry.
ยงErrors
Returns InvalidImage for an empty image sequence, mismatched timestamp
count, or nonfinite timestamps. These checks occur before assets are attached.