pub struct DecoderContext<'a> { /* private fields */ }Expand description
A decoder context for decoding JPEG2000 images.
Implementations§
Source§impl DecoderContext<'_>
impl DecoderContext<'_>
Sourcepub fn cpu_decode_parallelism(&self) -> CpuDecodeParallelism
pub fn cpu_decode_parallelism(&self) -> CpuDecodeParallelism
Return the native CPU decode parallelism policy.
Sourcepub fn set_cpu_decode_parallelism(&mut self, parallelism: CpuDecodeParallelism)
pub fn set_cpu_decode_parallelism(&mut self, parallelism: CpuDecodeParallelism)
Set the native CPU decode parallelism policy.
Trait Implementations§
Source§impl Default for DecoderContext<'_>
impl Default for DecoderContext<'_>
Source§fn default() -> DecoderContext<'_>
fn default() -> DecoderContext<'_>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for DecoderContext<'a>
impl<'a> RefUnwindSafe for DecoderContext<'a>
impl<'a> Send for DecoderContext<'a>
impl<'a> Sync for DecoderContext<'a>
impl<'a> Unpin for DecoderContext<'a>
impl<'a> UnsafeUnpin for DecoderContext<'a>
impl<'a> UnwindSafe for DecoderContext<'a>
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> 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