pub enum DngOpcode {
FixBadPixelsConstant {
planes: u32,
bad_point_value: u32,
},
FixBadPixelsList {
bad_points: Vec<(u32, u32)>,
bad_rects: Vec<(u32, u32, u32, u32)>,
},
GainMap(GainMap),
Unknown {
id: u32,
},
}Expand description
A parsed DNG opcode.
Variants§
FixBadPixelsConstant
Opcode ID 4: replace all pixels below a threshold with interpolated neighbours.
Fields
FixBadPixelsList
Opcode ID 5: replace a specific list of known bad pixels / rectangles.
Fields
GainMap(GainMap)
Opcode ID 9: spatially-varying gain map (lens shading / vignetting correction).
Unknown
An unrecognised opcode — stored so callers can decide whether to skip.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DngOpcode
impl RefUnwindSafe for DngOpcode
impl Send for DngOpcode
impl Sync for DngOpcode
impl Unpin for DngOpcode
impl UnsafeUnpin for DngOpcode
impl UnwindSafe for DngOpcode
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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