Skip to main content

Crate jxr_metal

Crate jxr_metal 

Source
Expand description

Metal planning and resource-lifecycle boundary for JPEG XR reconstruction.

CPU entropy output is retained in a five-phase Metal plan. Submission is exposed only because every packaged phase covers the accepted Main-profile matrix; the portable scalar implementation remains the arithmetic oracle.

Structs§

DenseMetalBatchLayout
One tightly packed image repeated contiguously in a Metal allocation.
MetalBatchDestination
Exclusively writable dense JPEG XR batch in one private Metal buffer.
MetalBatchDestinationCompletion
Completion metadata and retained storage for a dense caller-owned batch.
MetalBatchDestinationSubmission
Pending dense decode retaining every resource and exclusive destination.
MetalBatchSubmission
Pending ordered collection of Metal reconstruction submissions.
MetalCoefficientArena
Immutable CPU-produced coefficients already resident in shared Metal storage.
MetalCoefficientStaging
Exclusively writable shared Metal storage for CPU entropy output.
MetalDecodePlan
Device-neutral data required before Metal reconstruction can be submitted.
MetalDecoderSession
Reusable Metal runtime session.
MetalDestination
Exclusively writable JPEG XR surface in a caller-owned Metal buffer.
MetalDestinationCompletion
Completion metadata for a caller-owned Metal destination.
MetalDestinationSubmission
Pending decode retaining exclusive destination access through completion.
MetalKernelManifest
Static identity for one Metal phase implementation.
MetalResidentBatch
Completed homogeneous JPEG XR batch retained in one private Metal allocation.
MetalResidentBatchSubmission
Pending homogeneous reconstruction into one internally owned allocation.
MetalStageDiagnostics
Cumulative host and GPU time spent in each Metal submission stage.
MetalSubmission
Pending Metal reconstruction retaining its command buffer until completion.
ResidentMetalImage
Completed immutable Metal-resident JPEG XR output.
SharedMetalImage
Completed host-visible Metal output without a copy into Rust-owned samples.
SurfaceLayout

Enums§

KernelStage
Ordered JPEG XR reconstruction phase.
MetalError
Failure at the JXR Metal adapter boundary.
MetalRouteDecision
Concrete route selected by the Metal adapter planner.

Constants§

METAL_AUTO_THRESHOLD
Auto-routing threshold, measured in reconstructed coefficients.
RECONSTRUCTION_KERNELS
Ordered packaged reconstruction manifest.

Functions§

plan_metal_route
Resolve a request without probing or mutating runtime state.