public interface

AnimatedImageDecoder

com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder
Known Indirect Subclasses

Summary

Public Methods
abstract AnimatedImage decodeFromByteBuffer(ByteBuffer byteBuffer, ImageDecodeOptions options)
Factory method to create the AnimatedImage from a ByteBuffer
abstract AnimatedImage decodeFromNativeMemory(long nativePtr, int sizeInBytes, ImageDecodeOptions options)
Factory method to create the AnimatedImage from a native pointer

Public Methods

public abstract AnimatedImage decodeFromByteBuffer (ByteBuffer byteBuffer, ImageDecodeOptions options)

Factory method to create the AnimatedImage from a ByteBuffer

Parameters
byteBuffer The ByteBuffer containing the image
options The options for decoding
Returns
  • The AnimatedImage allocation

public abstract AnimatedImage decodeFromNativeMemory (long nativePtr, int sizeInBytes, ImageDecodeOptions options)

Factory method to create the AnimatedImage from a native pointer

Parameters
nativePtr The native pointer
sizeInBytes The size in byte to allocate
options The options for decoding
Returns
  • The AnimatedImage allocation