pub fn decode_header(data: impl AsRef<[u8]>) -> Result<Header>
Decode the image header from a slice of bytes.