public class

AnimatedImageFactory

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.animated.factory.AnimatedImageFactory

Class Overview

Decoder for animated images.

Summary

Public Constructors
AnimatedImageFactory(AnimatedDrawableBackendProvider animatedDrawableBackendProvider, PlatformBitmapFactory bitmapFactory)
Public Methods
CloseableImage decodeGif(CloseableReference<PooledByteBuffer> pooledByteBufferRef, ImageDecodeOptions options)
Decodes a GIF into a CloseableImage.
CloseableImage decodeWebP(CloseableReference<PooledByteBuffer> pooledByteBufferRef, ImageDecodeOptions options)
Decode a WebP into a CloseableImage.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AnimatedImageFactory (AnimatedDrawableBackendProvider animatedDrawableBackendProvider, PlatformBitmapFactory bitmapFactory)

Public Methods

public CloseableImage decodeGif (CloseableReference<PooledByteBuffer> pooledByteBufferRef, ImageDecodeOptions options)

Decodes a GIF into a CloseableImage.

Parameters
pooledByteBufferRef native byte array holding the encoded bytes
options the options for the decode
Returns

public CloseableImage decodeWebP (CloseableReference<PooledByteBuffer> pooledByteBufferRef, ImageDecodeOptions options)

Decode a WebP into a CloseableImage.

Parameters
pooledByteBufferRef native byte array holding the encoded bytes
options the options for the decode
Returns