Skip to main content

Module decode

Module decode 

Source
Expand description

Decode traits, types, and configuration.

§Trait hierarchy

                                 ┌→ Dec (implements Decode)
DecoderConfig → DecodeJob<'a> ──┤→ StreamDec (implements StreamingDecode)
                                 └→ AnimationFrameDec (implements AnimationFrameDecoder)

§Object-safe dyn dispatch

DynDecoderConfig → DynDecodeJob → DynDecoder / DynAnimationFrameDecoder / DynStreamingDecoder

Codec implementors implement the generic traits. Dispatch callers use the Dyn* variants for codec-agnostic operation.

Structs§

AnimationFrame
A composited full-canvas animation frame, borrowing the decoder’s canvas.
DecodeCapabilities
Describes what a decoder supports.
DecodeOutput
Output from a decode operation.
DecodePolicy
Decode security policy.
EmbeddedMetadata
Embedded non-color metadata from the image file.
OutputInfo
Predicted output from a decode operation.
OwnedAnimationFrame
A composited full-canvas animation frame with owned pixel data.
SourceColor
Source color description from the image file.

Traits§

AnimationFrameDecoder
Full-frame composited animation decode.
Decode
Single-image decode. Returns owned pixels.
DecodeJob
Per-operation decode job.
DecodeRowSink
Receives decoded rows during streaming decode.
DecoderConfig
Reusable decoder configuration.
DynAnimationFrameDecoder
Object-safe full-frame animation decoder.
DynDecodeJob
Object-safe decode job.
DynDecoder
Object-safe one-shot decoder.
DynDecoderConfig
Object-safe decoder configuration.
DynStreamingDecoder
Object-safe streaming scanline-batch decoder.
SourceEncodingDetails
Codec-agnostic interface for source encoding properties.
StreamingDecode
Streaming scanline-batch decode.

Functions§

is_format_available
Check whether a pixel format can be produced by selecting from available formats, considering lossless layout-compatible reinterpretation.
negotiate_pixel_format
Select the best output pixel format from available options.

Type Aliases§

BoxedError
Boxed error type for type-erased codec operations.
SinkError
Boxed error type for sink failures.