Struct JpegDecoder
pub struct JpegDecoder<R> { /* private fields */ }
JPEG decoder
Implementations
impl<R: BufRead + Seek> JpegDecoder<R>
fn new(r: R) -> ImageResult<JpegDecoder<R>>Create a new decoder that decodes from the stream
r
Trait Implementations
impl<R: BufRead + Seek> ImageDecoder for JpegDecoder<R>
fn dimensions(&self) -> (u32, u32)fn color_type(&self) -> ColorTypefn icc_profile(&mut self) -> ImageResult<Option<Vec<u8>>>fn exif_metadata(&mut self) -> ImageResult<Option<Vec<u8>>>fn xmp_metadata(&mut self) -> ImageResult<Option<Vec<u8>>>fn iptc_metadata(&mut self) -> ImageResult<Option<Vec<u8>>>fn orientation(&mut self) -> ImageResult<Orientation>fn read_image(self, buf: &mut [u8]) -> ImageResult<()>fn set_limits(&mut self, limits: Limits) -> ImageResult<()>fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>