-
public final class WebPDecoderThe WebPDecoder class provides functionality for decoding WebP images.
-
-
Constructor Summary
Constructors Constructor Description WebPDecoder()
-
Method Summary
Modifier and Type Method Description final BooleanaddDecodeListener(WebPDecodeListener listener)Adds a decode listener to receive decoding events. final BooleanremoveDecodeListener(WebPDecodeListener listener)Removes a decode listener. final WebPDecoderconfigure(DecoderConfig config)Configures this webp decoder. final UnitdecodeFrames(Context context, Uri srcUri, Uri dstUri)Decodes all frames of a WebP image and optionally saves them to a destination Uri. final WebPInfodecodeInfo(Context context, Uri srcUri)Decodes the image information of a WebP image. final Unitcancel()Cancels the decoding process. final Unitrelease()Releases the resources used by the WebPDecoder object. -
-
Method Detail
-
addDecodeListener
final Boolean addDecodeListener(WebPDecodeListener listener)
Adds a decode listener to receive decoding events.
- Parameters:
listener- The decode listener to add.
-
removeDecodeListener
final Boolean removeDecodeListener(WebPDecodeListener listener)
Removes a decode listener.
- Parameters:
listener- The decode listener to remove.
-
configure
final WebPDecoder configure(DecoderConfig config)
Configures this webp decoder.
- Parameters:
config- DecoderConfig to apply.
-
decodeFrames
final Unit decodeFrames(Context context, Uri srcUri, Uri dstUri)
Decodes all frames of a WebP image and optionally saves them to a destination Uri.
-
decodeInfo
final WebPInfo decodeInfo(Context context, Uri srcUri)
Decodes the image information of a WebP image.
-
release
final Unit release()
Releases the resources used by the WebPDecoder object.
-
-
-
-