pub struct EmbeddedPreview {
pub jpeg: Vec<u8>,
pub width: u32,
pub height: u32,
pub orientation: u16,
}Expand description
A RAW file’s embedded, camera-rendered JPEG, extracted without developing the RAW.
SSoT: Thumbnails — Embedded Previews. Local only: it is read from an original this device holds and is never uploaded, signed or listed as a tier. Its dimensions are what the render ladder places it by.
Fields§
§jpeg: Vec<u8>The JPEG exactly as the RAW file carries it.
width: u32Width in pixels upright, i.e. after orientation is applied.
height: u32Height in pixels upright.
orientation: u16The EXIF orientation (1..=8) a renderer applies to jpeg’s stored pixels: the JPEG’s own
tag where it carries one, else the RAW’s, since a camera writes the orientation into the
RAW’s IFD0 and usually leaves the preview unrotated and untagged. 1 when neither does.
decode_embedded_preview applies it; a platform decoder handed jpeg must apply it
itself, and must not apply the JPEG’s own tag a second time.
Trait Implementations§
Source§impl Clone for EmbeddedPreview
impl Clone for EmbeddedPreview
Source§fn clone(&self) -> EmbeddedPreview
fn clone(&self) -> EmbeddedPreview
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EmbeddedPreview
impl Debug for EmbeddedPreview
impl Eq for EmbeddedPreview
Source§impl PartialEq for EmbeddedPreview
impl PartialEq for EmbeddedPreview
Source§fn eq(&self, other: &EmbeddedPreview) -> bool
fn eq(&self, other: &EmbeddedPreview) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbeddedPreview
Auto Trait Implementations§
impl Freeze for EmbeddedPreview
impl RefUnwindSafe for EmbeddedPreview
impl Send for EmbeddedPreview
impl Sync for EmbeddedPreview
impl Unpin for EmbeddedPreview
impl UnsafeUnpin for EmbeddedPreview
impl UnwindSafe for EmbeddedPreview
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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