fn encode_sequence(
frames: Frames<'_>,
dim: &Dim,
limit: usize,
) -> Result<(Vec<u8>, usize)>Expand description
Encodes a bounded frame sequence into one GIF buffer.
A decode failure ends the sequence where it stands. Encoding failures still abort the result because the output buffer would be incomplete.