Package 

Class BasicBitmapProvider

    • Method Summary

      Modifier and Type Method Description
      Bitmap obtain(int width, int height, @NonNull() Bitmap.Config config) Returns an Bitmap with exactly the given dimensions and config.
      void release(@NonNull() Bitmap bitmap) Releases the given Bitmap back to the pool.
      Array<byte> obtainByteArray(int size) Returns a byte array used for decoding and generating the frame bitmap.
      void release(@NonNull() Array<byte> bytes) Releases the given byte array back to the pool.
      Array<int> obtainIntArray(int size) Returns an int array used for decoding/generating the frame bitmaps.
      void release(@NonNull() Array<int> array) Release the given array back to the pool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • obtainByteArray

        @NonNull() 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

         void release(@NonNull() Array<byte> bytes)

        Releases the given byte array back to the pool.

      • obtainIntArray

        @NonNull() Array<int> obtainIntArray(int size)

        Returns an int array used for decoding/generating the frame bitmaps.

      • release

         void release(@NonNull() Array<int> array)

        Release the given array back to the pool.