pub struct JpegStreamReader { /* private fields */ }Expand description
A JPEG stream reader
Implementations§
Source§impl JpegStreamReader
impl JpegStreamReader
Sourcepub fn new(opts: Option<JPEGOptions>) -> Self
pub fn new(opts: Option<JPEGOptions>) -> Self
Given the user provided options, Create a new JpegStreamReader
Sourcepub fn reset_frames(&mut self)
pub fn reset_frames(&mut self)
Reset the frames
Sourcepub fn reset_max_memory_usage(&mut self, max_memory_usage_bytes: usize)
pub fn reset_max_memory_usage(&mut self, max_memory_usage_bytes: usize)
Sourcepub fn get_image_data(&mut self) -> Image
pub fn get_image_data(&mut self) -> Image
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for JpegStreamReader
impl !RefUnwindSafe for JpegStreamReader
impl !Send for JpegStreamReader
impl !Sync for JpegStreamReader
impl Unpin for JpegStreamReader
impl !UnwindSafe for JpegStreamReader
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more