fn end_of_scan(bytes: &[u8], from: usize) -> usize
Where the picture data that starts at from in the JPEG bytes ends: at the next marker that is none of its own, which are the stuffed zero, the restart markers and fill bytes.
from
bytes