-
public interface GifDecoder.BitmapProvider
-
-
Method Summary
Modifier and Type Method Description abstract Bitmapobtain(int width, int height, @NonNull() Bitmap.Config config)Returns an Bitmap with exactly the given dimensions and config. abstract voidrelease(@NonNull() Bitmap bitmap)Releases the given Bitmap back to the pool. abstract Array<byte>obtainByteArray(int size)Returns a byte array used for decoding and generating the frame bitmap. abstract voidrelease(@NonNull() Array<byte> bytes)Releases the given byte array back to the pool. abstract Array<int>obtainIntArray(int size)Returns an int array used for decoding/generating the frame bitmaps. abstract voidrelease(@NonNull() Array<int> array)Release the given array back to the pool. -
-
Method Detail
-
obtain
@NonNull() abstract Bitmap obtain(int width, int height, @NonNull() Bitmap.Config config)
Returns an Bitmap with exactly the given dimensions and config.
- Parameters:
width- The width in pixels of the desired Bitmap.height- The height in pixels of the desired Bitmap.config- The Bitmap.Config of the desired .
-
obtainByteArray
@NonNull() abstract Array<byte> obtainByteArray(int size)
Returns a byte array used for decoding and generating the frame bitmap.
- Parameters:
size- the size of the byte array to obtain
-
release
abstract void release(@NonNull() Array<byte> bytes)
Releases the given byte array back to the pool.
-
obtainIntArray
@NonNull() abstract Array<int> obtainIntArray(int size)
Returns an int array used for decoding/generating the frame bitmaps.
-
-
-
-