pub fn downscale_rgba8(source: &RgbaImage, max_long_edge: u32) -> RgbaImageExpand description
Downscale packed RGBA8 so its long edge is at most max_long_edge.
A frame already within the cap — or an empty one — is returned unchanged (cloned), which is what makes this safe to call unconditionally. Deterministic: identical input yields byte-identical output on every target.