pub fn detect_format(bytes: &[u8]) -> Option<Format>
Returns the Format if the magic bytes match, else None.