Skip to main content

Module encode

Module encode 

Source
Expand description

Encode traits, types, and configuration.

§Trait hierarchy

                                 ┌→ Enc (implements Encoder)
EncoderConfig → EncodeJob ──────┤
                                 └→ AnimationFrameEnc (implements AnimationFrameEncoder)

§Object-safe dyn dispatch

DynEncoderConfig → DynEncodeJob → DynEncoder / DynAnimationFrameEncoder

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

Structs§

EncodeCapabilities
Describes what an encoder supports.
EncodeOutput
Output from an encode operation.
EncodePolicy
Encode metadata policy.

Traits§

AnimationFrameEncoder
Full-frame animation encoder.
DynAnimationFrameEncoder
Object-safe full-frame animation encoder.
DynEncodeJob
Object-safe encode job.
DynEncoder
Object-safe single-image encoder.
DynEncoderConfig
Object-safe encoder configuration.
EncodeJob
Per-operation encode job.
Encoder
Type-erased single-image encoder.
EncoderConfig
Reusable encoder configuration.

Functions§

best_encode_format
Select the best encode format for given pixel data.

Type Aliases§

BoxedError
Boxed error type for type-erased codec operations.