pub fn encode_fourcc(s: &str) -> [u8; 4]
Encode a 4-character string into a 4-byte array, space-padded on the right.