pub struct DecodeOptions {
pub decode_gain_map: bool,
pub retain_primary_jpeg: bool,
pub retain_gain_map_jpeg: bool,
}Expand description
Decode configuration. Decode configuration.
The default configuration decodes the primary image and any gain-map JPEG, but retains no raw JPEG codestream bytes.
Fields§
§decode_gain_map: boolWhether to decode the embedded gain-map JPEG when present.
This only affects gain-map pixel decode. Ultra HDR metadata inspection and recovery still run.
retain_primary_jpeg: boolWhether to retain the primary JPEG codestream in
DecodedImage::primary_jpeg.
retain_gain_map_jpeg: boolWhether to retain the gain-map JPEG codestream in
DecodedGainMap::jpeg_bytes.
This takes effect only when DecodeOptions::decode_gain_map is true
and a gain-map JPEG was decoded successfully.
Trait Implementations§
Source§impl Clone for DecodeOptions
impl Clone for DecodeOptions
Source§fn clone(&self) -> DecodeOptions
fn clone(&self) -> DecodeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeOptions
impl Debug for DecodeOptions
Source§impl Default for DecodeOptions
impl Default for DecodeOptions
Source§impl PartialEq for DecodeOptions
impl PartialEq for DecodeOptions
impl Copy for DecodeOptions
impl Eq for DecodeOptions
impl StructuralPartialEq for DecodeOptions
Auto Trait Implementations§
impl Freeze for DecodeOptions
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnsafeUnpin for DecodeOptions
impl UnwindSafe for DecodeOptions
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