Expand description
WebGPU compute shader JPEG decoder.
Usage:
- Create a
Gpucontext (either automatically viaGpu::openor from an existingwgpucontext viaGpu::from_wgpu). - Create a
Decoder(or multiple) viaDecoder::new. - For each JPEG image you want to decode, create an
ImageDataobject and pass it toDecoder::start_decode. - Access the output
TextureviaDecodeOp::texture.
Structs
- Information about an ongoing JPEG decode operation.
- A GPU JPEG decode context.
- An open handle to a GPU.
- A parsed JPEG image, containing all data needed for on-GPU decoding.