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 / DynStreamingDecoderCodec implementors implement the generic traits. Dispatch callers
use the Dyn* variants for codec-agnostic operation.
Structs§
- Animation
Frame - A composited full-canvas animation frame, borrowing the decoder’s canvas.
- Decode
Capabilities - Describes what a decoder supports.
- Decode
Output - Output from a decode operation.
- Decode
Policy - Decode security policy.
- Embedded
Metadata - Embedded non-color metadata from the image file.
- Output
Info - Predicted output from a decode operation.
- Owned
Animation Frame - A composited full-canvas animation frame with owned pixel data.
- Source
Color - Source color description from the image file.
Traits§
- Animation
Frame Decoder - Full-frame composited animation decode.
- Decode
- Single-image decode. Returns owned pixels.
- Decode
Job - Per-operation decode job.
- Decode
RowSink - Receives decoded rows during streaming decode.
- Decoder
Config - Reusable decoder configuration.
- DynAnimation
Frame Decoder - Object-safe full-frame animation decoder.
- DynDecode
Job - Object-safe decode job.
- DynDecoder
- Object-safe one-shot decoder.
- DynDecoder
Config - Object-safe decoder configuration.
- DynStreaming
Decoder - Object-safe streaming scanline-batch decoder.
- Source
Encoding Details - Codec-agnostic interface for source encoding properties.
- Streaming
Decode - 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§
- Boxed
Error - Boxed error type for type-erased codec operations.
- Sink
Error - Boxed error type for sink failures.