NativeWebPCodec class final
Encodes and decodes WebP through libwebp.
- Inheritance
-
- Object
- Codec<
Image, Uint8List> - RasterCodec<
WebPEncodeOptions, NativeWebPEncoder, WebPDecodeOptions, NativeWebPDecoder> - NativeWebPCodec
- Mixed-in types
Constructors
- NativeWebPCodec({NativeWebPEncoder rasterEncoder = const NativeWebPEncoder(), NativeWebPDecoder rasterDecoder = const NativeWebPDecoder()})
-
Creates a complete native WebP codec.
const
Properties
-
decoder
→ Converter<
Uint8List, Image> -
Returns the decoder of
this, converting fromTtoS.no setterinherited - encoder → NativeWebPEncoder
-
Returns the encoder from
StoT.no setterinherited - format → ImageFormat
-
Format accepted and produced by this codec.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Uint8List, Image> -
Inverts
this.no setterinherited - rasterDecoder → NativeWebPDecoder
-
Decoder used after shared input validation.
finalinherited
- rasterEncoder → NativeWebPEncoder
-
Encoder configured with this codec's output options.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptsInput(
Uint8List encoded) → bool -
Recognizes input accepted by this codec before attempting a decode.
inherited
-
checkDecodedDimensions(
int width, int height, int maxPixels) → void -
Rejects dimensions that exceed
maxPixelsbefore allocating pixels.inherited -
decode(
Uint8List encoded, {WebPDecodeOptions? decodeOptions}) → Image -
Decodes
encodeddata.inherited -
decodeBytes(
Uint8List encoded, {WebPDecodeOptions? decodeOptions}) → Image -
Decodes bytes after shared format and allocation-option validation.
inherited
-
encode(
Image input, {WebPEncodeOptions? encodeOptions}) → Uint8List -
Encodes
input.inherited -
encodeImage(
Image image, {WebPEncodeOptions? encodeOptions}) → Uint8List -
Encodes an image while format-specific options are in effect.
inherited
-
encodeImageWith(
ParallelRunner runner, Image image, {WebPEncodeOptions? encodeOptions}) → Future< Uint8List> -
Encodes an image through
runnerwhile format-specific options apply.inherited -
encodeWith(
ParallelRunner runner, Image input, {WebPEncodeOptions? encodeOptions}) → Future< Uint8List> -
Encodes
input, offeringrunnerthe parts that can run independently.inherited -
fuse<
R> (Codec< Uint8List, R> other) → Codec<Image, R> -
Fuses
thiswithother.inherited -
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