pub struct JpegInfo {
pub dimensions: Dimensions,
pub color_space: ColorSpace,
pub precision: u8,
pub num_components: u8,
pub mode: JpegMode,
pub has_icc_profile: bool,
pub is_xyb: bool,
}Expand description
Information about a decoded JPEG.
Fields§
§dimensions: DimensionsImage dimensions
color_space: ColorSpaceColor space
precision: u8Sample precision (8 or 12 bits)
num_components: u8Number of components
mode: JpegModeEncoding mode
has_icc_profile: boolWhether an ICC profile is embedded
is_xyb: boolWhether the ICC profile is an XYB profile
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JpegInfo
impl RefUnwindSafe for JpegInfo
impl Send for JpegInfo
impl Sync for JpegInfo
impl Unpin for JpegInfo
impl UnwindSafe for JpegInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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