pub struct RayonReversibleDwt53Accelerator { /* private fields */ }Expand description
CPU/Rayon accelerator for the exact reversible integer 5/3 first level.
This backend keeps j2k’s scalar ISLOW IDCT semantics as the oracle:
each 8x8 block is decoded with j2k-jpeg, level-shifted to signed
component samples, then transformed with reversible integer 5/3 lifting.
Implementations§
Source§impl RayonReversibleDwt53Accelerator
impl RayonReversibleDwt53Accelerator
Sourcepub const fn reversible_dwt53_attempts(&self) -> usize
pub const fn reversible_dwt53_attempts(&self) -> usize
Number of reversible 5/3 jobs offered to this accelerator.
Sourcepub const fn reversible_dwt53_dispatches(&self) -> usize
pub const fn reversible_dwt53_dispatches(&self) -> usize
Number of reversible 5/3 jobs handled by this accelerator.
Sourcepub const fn reversible_dwt53_batch_attempts(&self) -> usize
pub const fn reversible_dwt53_batch_attempts(&self) -> usize
Number of reversible 5/3 batches offered to this accelerator.
Sourcepub const fn reversible_dwt53_batch_dispatches(&self) -> usize
pub const fn reversible_dwt53_batch_dispatches(&self) -> usize
Number of reversible 5/3 batches handled by this accelerator.
Trait Implementations§
Source§impl Clone for RayonReversibleDwt53Accelerator
impl Clone for RayonReversibleDwt53Accelerator
Source§fn clone(&self) -> RayonReversibleDwt53Accelerator
fn clone(&self) -> RayonReversibleDwt53Accelerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DctToWaveletStageAccelerator for RayonReversibleDwt53Accelerator
impl DctToWaveletStageAccelerator for RayonReversibleDwt53Accelerator
Source§fn dct_grid_to_reversible_dwt53(
&mut self,
job: DctGridToReversibleDwt53Job<'_>,
) -> Result<Option<ReversibleDwt53FirstLevel>, TranscodeStageError>
fn dct_grid_to_reversible_dwt53( &mut self, job: DctGridToReversibleDwt53Job<'_>, ) -> Result<Option<ReversibleDwt53FirstLevel>, TranscodeStageError>
Optionally compute the direct DCT-grid to one-level reversible integer
5/3 projection. Read more
Source§fn dct_grid_to_reversible_dwt53_batch(
&mut self,
jobs: &[DctGridToReversibleDwt53Job<'_>],
) -> Result<Option<Vec<ReversibleDwt53FirstLevel>>, TranscodeStageError>
fn dct_grid_to_reversible_dwt53_batch( &mut self, jobs: &[DctGridToReversibleDwt53Job<'_>], ) -> Result<Option<Vec<ReversibleDwt53FirstLevel>>, TranscodeStageError>
Optionally compute a same-geometry batch of direct DCT-grid to
one-level reversible integer 5/3 projections. Read more
Source§fn supports_dwt97_batch(&self) -> bool
fn supports_dwt97_batch(&self) -> bool
Whether this accelerator wants same-geometry 9/7 batch jobs offered. Read more
Source§fn supports_htj2k97_codeblock_batch(&self) -> bool
fn supports_htj2k97_codeblock_batch(&self) -> bool
Whether this accelerator wants same-geometry 9/7 batches offered as
prequantized HTJ2K code-block jobs before the float-band hook.
Source§fn supports_htj2k97_i16_preencoded_batch(&self) -> bool
fn supports_htj2k97_i16_preencoded_batch(&self) -> bool
Whether this accelerator wants same-geometry 9/7 preencoded HTJ2K
batches offered with dequantized i16 DCT blocks before materializing the
generic f64 block representation.
Source§fn supports_htj2k97_compact_preencoded_batch(&self) -> bool
fn supports_htj2k97_compact_preencoded_batch(&self) -> bool
Whether this accelerator wants the compact i16 preencoded HTJ2K batch
hook offered before the owned preencoded hook.
Source§fn dct_grid_to_dwt53(
&mut self,
_job: DctGridToDwt53Job<'_>,
) -> Result<Option<Dwt53TwoDimensional<f64>>, TranscodeStageError>
fn dct_grid_to_dwt53( &mut self, _job: DctGridToDwt53Job<'_>, ) -> Result<Option<Dwt53TwoDimensional<f64>>, TranscodeStageError>
Optionally compute the direct DCT-grid to one-level 5/3 projection. Read more
Source§fn dct_grid_to_dwt97(
&mut self,
_job: DctGridToDwt97Job<'_>,
) -> Result<Option<Dwt97TwoDimensional<f64>>, TranscodeStageError>
fn dct_grid_to_dwt97( &mut self, _job: DctGridToDwt97Job<'_>, ) -> Result<Option<Dwt97TwoDimensional<f64>>, TranscodeStageError>
Optionally compute the direct DCT-grid to one-level 9/7 transform. Read more
Source§fn dct_grid_to_dwt97_batch(
&mut self,
_jobs: &[DctGridToDwt97Job<'_>],
) -> Result<Option<Vec<Dwt97TwoDimensional<f64>>>, TranscodeStageError>
fn dct_grid_to_dwt97_batch( &mut self, _jobs: &[DctGridToDwt97Job<'_>], ) -> Result<Option<Vec<Dwt97TwoDimensional<f64>>>, TranscodeStageError>
Optionally compute a same-geometry batch of direct DCT-grid to
one-level 9/7 transforms. Read more
Source§fn dct_grid_to_htj2k97_codeblock_batch(
&mut self,
_jobs: &[DctGridToHtj2k97CodeBlockJob<'_>],
_options: Htj2k97CodeBlockOptions,
) -> Result<Option<Vec<PrequantizedHtj2k97Component>>, TranscodeStageError>
fn dct_grid_to_htj2k97_codeblock_batch( &mut self, _jobs: &[DctGridToHtj2k97CodeBlockJob<'_>], _options: Htj2k97CodeBlockOptions, ) -> Result<Option<Vec<PrequantizedHtj2k97Component>>, TranscodeStageError>
Optionally compute same-geometry DCT-grid 9/7 jobs directly into
prequantized HTJ2K code-block components. Read more
Source§fn dct_grid_to_htj2k97_preencoded_batch(
&mut self,
_jobs: &[DctGridToHtj2k97CodeBlockJob<'_>],
_options: Htj2k97CodeBlockOptions,
) -> Result<Option<Vec<PreencodedHtj2k97Component>>, TranscodeStageError>
fn dct_grid_to_htj2k97_preencoded_batch( &mut self, _jobs: &[DctGridToHtj2k97CodeBlockJob<'_>], _options: Htj2k97CodeBlockOptions, ) -> Result<Option<Vec<PreencodedHtj2k97Component>>, TranscodeStageError>
Optionally compute same-geometry DCT-grid 9/7 jobs directly into
preencoded HTJ2K code-block payloads. Read more
Source§fn dct_grid_i16_to_htj2k97_preencoded_batch(
&mut self,
_jobs: &[DctGridI16ToHtj2k97CodeBlockJob<'_>],
_options: Htj2k97CodeBlockOptions,
) -> Result<Option<Vec<PreencodedHtj2k97Component>>, TranscodeStageError>
fn dct_grid_i16_to_htj2k97_preencoded_batch( &mut self, _jobs: &[DctGridI16ToHtj2k97CodeBlockJob<'_>], _options: Htj2k97CodeBlockOptions, ) -> Result<Option<Vec<PreencodedHtj2k97Component>>, TranscodeStageError>
Optionally compute same-geometry dequantized i16 DCT-grid 9/7 jobs
directly into preencoded HTJ2K code-block payloads. Read more
Source§fn dct_grid_i16_to_htj2k97_compact_preencoded_batch(
&mut self,
_jobs: &[DctGridI16ToHtj2k97CodeBlockJob<'_>],
_options: Htj2k97CodeBlockOptions,
) -> Result<Option<PreencodedHtj2k97CompactBatch>, TranscodeStageError>
fn dct_grid_i16_to_htj2k97_compact_preencoded_batch( &mut self, _jobs: &[DctGridI16ToHtj2k97CodeBlockJob<'_>], _options: Htj2k97CodeBlockOptions, ) -> Result<Option<PreencodedHtj2k97CompactBatch>, TranscodeStageError>
Optionally compute same-geometry dequantized i16 DCT-grid 9/7 jobs into
compact preencoded HTJ2K code-block payloads. Read more
Source§fn dct_grid_i16_to_htj2k97_preencoded_batch_groups(
&mut self,
_groups: &[DctGridI16ToHtj2k97CodeBlockBatch<'_, '_>],
_options: Htj2k97CodeBlockOptions,
) -> Result<Option<Vec<Vec<PreencodedHtj2k97Component>>>, TranscodeStageError>
fn dct_grid_i16_to_htj2k97_preencoded_batch_groups( &mut self, _groups: &[DctGridI16ToHtj2k97CodeBlockBatch<'_, '_>], _options: Htj2k97CodeBlockOptions, ) -> Result<Option<Vec<Vec<PreencodedHtj2k97Component>>>, TranscodeStageError>
Optionally compute multiple same-geometry dequantized i16 DCT-grid
batches directly into preencoded HTJ2K code-block payloads. Read more
Source§fn dct_grid_i16_to_htj2k97_compact_preencoded_batch_groups(
&mut self,
_groups: &[DctGridI16ToHtj2k97CodeBlockBatch<'_, '_>],
_options: Htj2k97CodeBlockOptions,
) -> Result<Option<PreencodedHtj2k97CompactBatchGroups>, TranscodeStageError>
fn dct_grid_i16_to_htj2k97_compact_preencoded_batch_groups( &mut self, _groups: &[DctGridI16ToHtj2k97CodeBlockBatch<'_, '_>], _options: Htj2k97CodeBlockOptions, ) -> Result<Option<PreencodedHtj2k97CompactBatchGroups>, TranscodeStageError>
Optionally compute multiple same-geometry dequantized i16 DCT-grid 9/7
batches into compact preencoded HTJ2K code-block payloads. Read more
Source§fn last_dwt97_batch_stage_timings(&self) -> Option<Dwt97BatchStageTimings>
fn last_dwt97_batch_stage_timings(&self) -> Option<Dwt97BatchStageTimings>
Return backend stage timings for the most recent 9/7 batch dispatch.
Source§impl Default for RayonReversibleDwt53Accelerator
impl Default for RayonReversibleDwt53Accelerator
Source§fn default() -> RayonReversibleDwt53Accelerator
fn default() -> RayonReversibleDwt53Accelerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RayonReversibleDwt53Accelerator
impl RefUnwindSafe for RayonReversibleDwt53Accelerator
impl Send for RayonReversibleDwt53Accelerator
impl Sync for RayonReversibleDwt53Accelerator
impl Unpin for RayonReversibleDwt53Accelerator
impl UnsafeUnpin for RayonReversibleDwt53Accelerator
impl UnwindSafe for RayonReversibleDwt53Accelerator
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