pub struct DecodeSettings { /* private fields */ }Expand description
Validation policy used by prepared and one-shot J2K batch decoding.
Decode geometry belongs to crate::DecodeRequest, so this value does not
carry a second target-resolution setting that could conflict with the
request. Palette and component mappings are validated by batch preparation;
the native decoder always resolves them on non-batch facade paths.
Implementations§
Source§impl DecodeSettings
impl DecodeSettings
Sourcepub const fn lenient() -> Self
pub const fn lenient() -> Self
Compatibility policy for explicitly recoverable JP2/JPH metadata.
Lenient mode may ignore malformed trailing boxes after required
metadata, ignore malformed optional cdef or pclr boxes, and infer
one undeclared alpha component. Raw codestream and entropy validation,
bounds and overflow checks, allocation limits, and all resource-safety
checks remain strict.
Sourcepub const fn lenient_tolerance_enabled(self) -> bool
pub const fn lenient_tolerance_enabled(self) -> bool
Whether recoverable optional-metadata errors may be tolerated.
Trait Implementations§
Source§impl Clone for DecodeSettings
impl Clone for DecodeSettings
impl Copy for DecodeSettings
Source§impl Debug for DecodeSettings
impl Debug for DecodeSettings
Source§impl Default for DecodeSettings
impl Default for DecodeSettings
impl Eq for DecodeSettings
Source§impl PartialEq for DecodeSettings
impl PartialEq for DecodeSettings
impl StructuralPartialEq for DecodeSettings
Auto Trait Implementations§
impl Freeze for DecodeSettings
impl RefUnwindSafe for DecodeSettings
impl Send for DecodeSettings
impl Sync for DecodeSettings
impl Unpin for DecodeSettings
impl UnsafeUnpin for DecodeSettings
impl UnwindSafe for DecodeSettings
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
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> ⓘ
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