pub fn parse_gif_loop_count(bytes: &[u8]) -> Option<u32>Expand description
Extract the loop count from a GIF’s NETSCAPE2.0 application extension.
Returns Some(0) for infinite, Some(n) for a finite count, or None
when the extension is absent (callers treat that as infinite). The image
crate’s high-level decoder does not expose this, so we read it directly.