Skip to main content

Crate j2k_transcode

Crate j2k_transcode 

Source
Expand description

JPEG-to-HTJ2K coefficient-domain transcode workflow.

Structs§

BatchTranscodeReport
Aggregate report for multi-tile transcode.
CpuOnlyDctToWaveletStageAccelerator
Accelerator that always uses the scalar CPU fallback.
Dct97GridScratch
Scratch storage for repeated DCT-grid to 9/7 transform calls.
DctGridError
Error returned when a DCT block grid cannot cover the requested component.
DctGridI16ToHtj2k97CodeBlockBatch
One same-geometry i16 DCT-grid HTJ2K preencode batch.
DctGridI16ToHtj2k97CodeBlockJob
Direct dequantized i16 DCT-grid to one-level 9/7 HTJ2K code-block job.
DctGridToDwt53Job
Direct DCT-grid to one-level 5/3 projection job.
DctGridToDwt97Job
Direct DCT-grid to one-level 9/7 transform job.
DctGridToHtj2k97CodeBlockJob
Direct DCT-grid to prequantized one-level 9/7 HTJ2K code-block job.
DctGridToReversibleDwt53Job
Direct DCT-grid to one-level reversible integer 5/3 projection job.
DctToWaveletStageCounters
Shared offered/handled counters for DCT-to-wavelet stage accelerators.
Dwt53TwoDimensional
One separable single-level 2D 5/3 transform result.
Dwt97BatchStageTimings
Backend-specific timing breakdown for a same-geometry 9/7 batch.
Dwt97TwoDimensional
One separable single-level 2D 9/7 transform result.
EncodedHtJ2kCodeBlock
Adapter encoded HTJ2K cleanup/refinement code-block payload for backend experimentation.
EncodedTranscode
Encoded transcode output and validation/report metadata.
EncodedTranscodeBatch
Batch transcode output. Tile-level parse/encode failures are preserved so a WSI ingest queue can continue past isolated bad tiles.
Htj2k97CodeBlockOptions
Encode parameters needed to quantize 9/7 output directly into HTJ2K code-block coefficient layout.
Htj2kEncodeError
Opaque, transcode-owned source for a native HTJ2K encode failure.
IrreversibleQuantizationSubbandScales
Multipliers applied to irreversible 9/7 quantization step sizes by subband.
JpegTileBatchInput
One JPEG tile input for batch transcode.
JpegToHtj2kEncodeOptions
HTJ2K encode options used after JPEG coefficient-domain wavelet bands are produced.
JpegToHtj2kOptions
Options for the experimental JPEG-to-HTJ2K path.
JpegToHtj2kTranscoder
Reusable experimental JPEG-to-HTJ2K transcoder state.
PreencodedHtj2k97CodeBlock
One preencoded HTJ2K code-block.
PreencodedHtj2k97CompactBatch
Compact preencoded HTJ2K components backed by one payload buffer.
PreencodedHtj2k97CompactBatchGroups
Compact preencoded HTJ2K grouped-batch output backed by one payload buffer.
PreencodedHtj2k97CompactCodeBlock
One compact preencoded HTJ2K code-block.
PreencodedHtj2k97CompactComponent
Preencoded compact irreversible 9/7 HTJ2K component.
PreencodedHtj2k97CompactImage
Preencoded irreversible 9/7 HTJ2K code-block image backed by one compact payload buffer.
PreencodedHtj2k97CompactResolution
One component resolution’s compact preencoded HTJ2K subbands.
PreencodedHtj2k97CompactSubband
One compact preencoded HTJ2K subband split into code-blocks.
PreencodedHtj2k97Component
Preencoded irreversible 9/7 HTJ2K component.
PreencodedHtj2k97Resolution
One component resolution’s preencoded HTJ2K subbands.
PreencodedHtj2k97Subband
One preencoded HTJ2K subband split into code-blocks.
PrequantizedHtj2k97CodeBlock
One prequantized HTJ2K code-block.
PrequantizedHtj2k97Component
Prequantized irreversible 9/7 HTJ2K component.
PrequantizedHtj2k97Image
Prequantized irreversible 9/7 HTJ2K code-block image.
PrequantizedHtj2k97Resolution
One component resolution’s prequantized HTJ2K subbands.
PrequantizedHtj2k97Subband
One prequantized HTJ2K subband split into code-blocks.
RayonReversibleDwt53Accelerator
CPU/Rayon accelerator for the exact reversible integer 5/3 first level.
ResidentBufferRef
Borrowed, backend-visible memory range with a caller-owned lifetime.
ResidentCodestreamBuffer
Resident codestream buffer descriptor.
ResidentComponentGeometry
Per-component geometry shared by resident handoff descriptors.
ResidentDctGridLayout
Layout metadata for a resident JPEG DCT-grid descriptor.
ResidentDwtSubband
Resident projected DWT subband descriptor.
ResidentDwtSubbandLayout
Layout metadata for a resident DWT subband descriptor.
ResidentJpegDctGrid
Resident JPEG DCT coefficient grid descriptor.
ResidentSampleInfo
Sample precision metadata for resident handoff buffers.
ResidentSampling
Component sampling factors preserved through JPEG-to-HTJ2K transcode.
ReversibleDwt53FirstLevel
One separable single-level reversible integer 5/3 transform result.
TranscodeBatchProfileRow
Shared transcode batch profile row fields.
TranscodeComponentReport
Per-component transcode geometry preserved in the generated codestream.
TranscodePipelineMap
Stage-by-stage transcode residency map derived from existing timings.
TranscodePipelineStageReport
One stage in a transcode pipeline residency map.
TranscodeReport
Transcode summary for validation and benchmarking.
TranscodeResidentStageRecommendation
Recommended next stage to evaluate for Metal residency.
TranscodeTimingReport
Detailed timing and dispatch counters for JPEG-to-HTJ2K transcode.

Enums§

DctToWaveletStageCounterEvent
Counter row recorded by DCT-to-wavelet stage accelerators.
DctTransformError
Error returned when a DCT-grid transform cannot be executed safely.
EncodeProgressionOrder
Supported JPEG 2000 progression orders for the lossless encode facade.
Htj2k97CodeBlockAxis
Code-block dimension whose exponent failed validation.
Htj2k97CodeBlockOptionsError
Failure returned when shared HTJ2K 9/7 code-block options are unsupported.
Htj2kEncodeErrorKind
Machine-readable class for a native HTJ2K encode failure.
J2kSubBandType
Adapter classic J2K sub-band kind for backend experimentation.
JpegToHtj2kCoefficientPath
Experimental production path used to generate HTJ2K wavelet coefficients.
JpegToHtj2kError
Error returned by the experimental transcode path.
ResidentColorModel
Color interpretation carried by a resident transcode handoff buffer.
ResidentDctCoefficientOrder
Coefficient ordering used by a resident JPEG DCT-grid buffer.
ResidentDwtSubbandKind
Wavelet subband represented by a resident DWT buffer.
ResidentHandoffError
Error returned by resident transcode handoff descriptor constructors.
TranscodeBatchProfileRequest
Stable profile request label for transcode batch telemetry.
TranscodePipelineStageKind
Logical stages in the JPEG-to-J2K/HTJ2K transcode pipeline.
TranscodeStageDispatchMode
Dispatch policy for optional transcode-stage accelerators.
TranscodeStageError
Error returned by accelerated transcode stage backends.
TranscodeStageProcessor
Observed residency for a transcode stage.
TranscodeValidationClassification
Classification for optional coefficient-validation metrics.

Constants§

JPEG_TO_HTJ2K_LOSSY_97_QUANTIZATION_SCALE
Default irreversible quantization multiplier for JPEG direct 9/7 HTJ2K.

Traits§

DctToWaveletStageAccelerator
Optional backend for SIMD, GPU, or other accelerated transform stages.

Functions§

dct8x8_blocks_then_dwt53_float
Reference path for a DCT block grid: DCT coefficients -> float IDCT samples -> separable linearized 5/3.
dct8x8_blocks_then_dwt97_float
Reference path for a DCT block grid: DCT coefficients -> float IDCT samples -> separable linearized 9/7.
dct8x8_blocks_then_dwt97_float_with_scratch
Reference 9/7 path with caller-owned spatial-sample scratch: DCT coefficients -> float IDCT samples -> separable linearized 9/7.
dct8x8_blocks_to_dwt53_float_linear
Map an adjacent 8x8 DCT block grid directly into a linearized one-level 2D 5/3 result for the logical component dimensions.
htj2k97_subband_delta
Deadzone quantization step size Δ for a subband.
htj2k97_subband_total_bitplanes
Total declared bitplanes for every code-block in a subband.
jpeg_to_htj2k
Transcode a constrained baseline grayscale JPEG tile into an HTJ2K codestream using direct DCT-domain wavelet coefficients.
jpeg_to_htj2k_batch
Transcode many JPEG tiles into HTJ2K codestreams.
validate_htj2k97_codeblock_options
Validate 9/7 code-block options against the numeric limits both GPU backends must agree on, returning the decoded (cb_width, cb_height).

Type Aliases§

TranscodeValidationMetrics
Error metrics from an optional validation oracle.