-
public interface WebPDecodeListenerThe WebPDecodeListener interface defines callback methods to receive decoding events during WebP decoding.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonInfoDecoded(WebPInfo info)Called when the decoder has decoded information about the image. abstract UnitonFrameDecoded(Integer index, Long timestamp, Bitmap bitmap, Uri uri)Called when the decoder has decoded a frame of the image. -
-
Method Detail
-
onInfoDecoded
abstract Unit onInfoDecoded(WebPInfo info)
Called when the decoder has decoded information about the image.
- Parameters:
info- The information about the image.
-
onFrameDecoded
abstract Unit onFrameDecoded(Integer index, Long timestamp, Bitmap bitmap, Uri uri)
Called when the decoder has decoded a frame of the image. Do not recycle bitmap as it is reused internally.
- Parameters:
index- The index of the frame.timestamp- The timestamp of the frame.bitmap- The frame of the image.uri- Uri of the saved frame or null if the frame is not saved.
-
-
-
-