Package 

Interface AnimatedImageCompositor.Callback

    • Method Summary

      Modifier and Type Method Description
      abstract void onIntermediateResult(int frameNumber, Bitmap bitmap) Called from within renderFrame to let the caller know that while trying generate therequested frame, an earlier frame was generated.
      abstract CloseableReference<Bitmap> getCachedBitmap(int frameNumber) Called from within renderFrame to ask the caller for a cached bitmap for thespecified frame number.
      • Methods inherited from class java.lang.Object

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

      • onIntermediateResult

         abstract void onIntermediateResult(int frameNumber, Bitmap bitmap)

        Called from within renderFrame to let the caller know that while trying generate therequested frame, an earlier frame was generated. This allows the caller to optionally cachethe intermediate result. The caller must copy the Bitmap if it wishes to cache it as will continue using it generate the requested frame.

        Parameters:
        frameNumber - the frame number of the intermediate result
        bitmap - the bitmap which must not be modified or directly cached
      • getCachedBitmap

        @Nullable() abstract CloseableReference<Bitmap> getCachedBitmap(int frameNumber)

        Called from within renderFrame to ask the caller for a cached bitmap for thespecified frame number. If the caller has the bitmap cached, it can greatly reduce the workrequired to render the requested frame.

        Parameters:
        frameNumber - the frame number to get