public @Nullable CloseableImage decodeAnimatedWebp(
      final EncodedImage encodedImage,
      final int length,
      final QualityInfo qualityInfo,
      final ImageDecodeOptions options) {
    if (!options.forceStaticImage && mAnimatedWebPDecoder != null) {
      return mAnimatedWebPDecoder.decode(encodedImage, length, qualityInfo, options);
    }
    return decodeStaticImage(encodedImage, options);
  }
Decode a webp animated image into a CloseableImage.

<p>The image is decoded into a 'pinned' purgeable bitmap.

@param encodedImage input image (encoded bytes plus meta data)
@param options
@return a {@link CloseableImage}
imagepipeline/src/main/java/com/facebook/imagepipeline/decoder/DefaultImageDecoder.java