Skip to main content

CudaDctToWaveletStageAccelerator

Struct CudaDctToWaveletStageAccelerator 

Source
pub struct CudaDctToWaveletStageAccelerator { /* private fields */ }
Expand description

Optional CUDA accelerator for j2k-transcode transform stages.

Implementations§

Source§

impl CudaDctToWaveletStageAccelerator

Source

pub const fn new_explicit() -> Self

Create an accelerator that treats unavailable/unsupported CUDA dispatch as an error (no silent scalar fallback).

Source

pub const fn new_explicit_resident_ht_encode() -> Self

Create an explicit accelerator that keeps 9/7 code-block coefficients resident and HT-encodes them on the same CUDA context before CPU packetization.

Source

pub const fn for_auto() -> Self

Create an accelerator that falls back to the scalar oracle for small or unsupported jobs.

Source

pub const fn with_auto_reversible_batch_thresholds( self, min_jobs: usize, min_samples: usize, ) -> Self

Override the reversible 5/3 batch thresholds used before Auto mode dispatches a batch to CUDA.

Source

pub const fn with_auto_dwt97_batch_thresholds( self, min_jobs: usize, min_samples: usize, ) -> Self

Override the 9/7 batch thresholds used before Auto mode dispatches a same-geometry batch to CUDA.

Source

pub const fn reversible_dwt53_attempts(&self) -> usize

Number of reversible 5/3 jobs offered to this accelerator.

Source

pub const fn reversible_dwt53_dispatches(&self) -> usize

Number of reversible 5/3 jobs handled on the GPU.

Source

pub const fn reversible_dwt53_batch_attempts(&self) -> usize

Number of reversible 5/3 batches offered to this accelerator.

Source

pub const fn reversible_dwt53_batch_dispatches(&self) -> usize

Number of reversible 5/3 batches handled on the GPU.

Source

pub const fn dwt53_attempts(&self) -> usize

Number of float 5/3 jobs offered to this accelerator.

Source

pub const fn dwt53_dispatches(&self) -> usize

Number of float 5/3 jobs handled on the GPU.

Source

pub const fn dwt97_attempts(&self) -> usize

Number of 9/7 jobs offered to this accelerator.

Source

pub const fn dwt97_dispatches(&self) -> usize

Number of 9/7 jobs handled on the GPU.

Source

pub const fn dwt97_batch_attempts(&self) -> usize

Number of 9/7 batches offered to this accelerator.

Source

pub const fn dwt97_batch_dispatches(&self) -> usize

Number of 9/7 batches handled on the GPU.

Source

pub const fn htj2k97_codeblock_batch_attempts(&self) -> usize

Number of prequantized 9/7 HTJ2K code-block batches offered.

Source

pub const fn htj2k97_codeblock_batch_dispatches(&self) -> usize

Number of prequantized 9/7 HTJ2K code-block batches handled on the GPU.

Trait Implementations§

Source§

impl Clone for CudaDctToWaveletStageAccelerator

Source§

fn clone(&self) -> CudaDctToWaveletStageAccelerator

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DctToWaveletStageAccelerator for CudaDctToWaveletStageAccelerator

Source§

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

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

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

Whether this accelerator wants the compact i16 preencoded HTJ2K batch hook offered before the owned preencoded hook.
Source§

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>

Optionally compute a same-geometry batch of direct DCT-grid to one-level reversible integer 5/3 projections. Read more
Source§

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>

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>

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>

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>

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>

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>

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>

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>

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>

Return backend stage timings for the most recent 9/7 batch dispatch.
Source§

impl Debug for CudaDctToWaveletStageAccelerator

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CudaDctToWaveletStageAccelerator

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.