pub struct DecoderContext<'a> { /* private fields */ }Expand description
A decoder context for decoding JPEG2000 images.
Implementations§
Source§impl DecoderContext<'_>
impl DecoderContext<'_>
Sourcepub fn from_workspace(workspace: DecoderWorkspace) -> Self
pub fn from_workspace(workspace: DecoderWorkspace) -> Self
Create a borrowing decoder context from a lifetime-free reusable workspace.
Sourcepub fn into_workspace(self) -> DecoderWorkspace
pub fn into_workspace(self) -> DecoderWorkspace
Release input-borrowing graph owners and recover the reusable workspace.
Sourcepub const fn workspace_stats(&self) -> DecoderWorkspaceStats
pub const fn workspace_stats(&self) -> DecoderWorkspaceStats
Return reuse counters for this context’s lifetime-free workspace state.
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§
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