Function decode_stream
pub fn decode_stream(
stream: &mut impl Read,
) -> Result<Codec<'_>, SkCodec_Result>Expand description
Attempts to decode the given bytes as a JPEG.
If the bytes are not a JPEG, returns an error Result explaining the reason for the
failure.