ImageCodecExtension<EncodeOptions extends RasterEncodeOptions, DecodeOptions extends RasterDecodeOptions> class abstract base

Supplies an optional codec implementation without adding a package dependency.

Implementations register once in each isolate through ImageCodecRegistry. A new format is registered separately through ImageFormatRegistry, which keeps signature discovery independent from codec implementation.

Constructors

ImageCodecExtension()
Creates an immutable format extension.
const

Properties

format → ImageFormat
Format implemented by this extension.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Uint8List bytes, {DecodeOptions? decodeOptions}) → Image
Decodes straight RGBA8 using format-specific decodeOptions.
decodeData(Uint8List bytes, {DecodeOptions? decodeOptions, required int maxDecodedBytes, required int maxIccProfileBytes}) → DecodedImage
Decodes native process samples without reducing their precision.
encode(Image image, {EncodeOptions? encodeOptions}) → Uint8List
Encodes straight RGBA8 with the extension's default compression options.
inspect(Uint8List bytes, {int maxIccProfileBytes = defaultMaxIccProfileBytes, int maxDescriptiveMetadataBytes = defaultMaxDescriptiveMetadataBytes}) → DecodedImageMetadata?
Inspects container metadata without decoding pixels.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited