Function imagefmt::read_jpeg [] [src]

pub fn read_jpeg<R: Read>(reader: &mut R, req_fmt: ColFmt) -> Result<Image>

Reads an image and converts it to requested format.

Passing ColFmt::Auto as req_fmt converts the data to Y or RGB.