Skip to main content

gif_pictures_alone

Function gif_pictures_alone 

Source
pub(crate) fn gif_pictures_alone(bytes: &[u8]) -> Option<Vec<u8>>
Expand description

An animated GIF written again with its pictures alone (the review of 18 October 2026, L-1, and of its re-check, L-c): its header, its screen and colour tables and each frame’s image kept byte for byte; each frame’s timing (its graphic control) written as its own four bytes alone, its loop (NETSCAPE2.0’s or ANIMEXTS1.0’s block) as its first sub-block alone (01 and the count), whatever else a crafted GIF puts in them; its comments, plain-text blocks, other programs’ blocks (XMP, a colour profile, an editor’s notes) and whatever follows its end left out; its end written when it lacks one (Qt reads such a GIF). No frame is decoded: each block says its own length. None for a GIF cut inside a block.