Package 

Class ProducerSequenceFactory

    • Method Detail

      • getNetworkFetchSequence

         final Producer<CloseableReference<CloseableImage>> getNetworkFetchSequence()

        swallow result if prefetch -> bitmap cache get -> background thread hand-off -> multiplex -> bitmap cache -> decode -> multiplex -> encoded cache -> disk cache -> (webp transcode) -> network fetch.

      • getLocalImageFileFetchSequence

         final Producer<CloseableReference<CloseableImage>> getLocalImageFileFetchSequence()

        bitmap cache get -> background thread hand-off -> multiplex -> bitmap cache -> decode -> branch on separate images -> exif resize and rotate -> exif thumbnail creation -> local image resize and rotate -> add meta data producer -> multiplex -> encoded cache -> (webp transcode) -> local file fetch.

      • getLocalVideoFileFetchSequence

         final Producer<CloseableReference<CloseableImage>> getLocalVideoFileFetchSequence()

        Bitmap cache get -> thread hand off -> multiplex -> bitmap cache -> local video thumbnail

      • getLocalContentUriFetchSequence

         final Producer<CloseableReference<CloseableImage>> getLocalContentUriFetchSequence()

        bitmap cache get -> background thread hand-off -> multiplex -> bitmap cache -> decode -> branch on separate images -> thumbnail resize and rotate -> thumbnail branch -> local content thumbnail creation -> exif thumbnail creation -> local image resize and rotate -> add meta data producer -> multiplex -> encoded cache -> (webp transcode) -> local content uri fetch.

      • getQualifiedResourceFetchSequence

         final Producer<CloseableReference<CloseableImage>> getQualifiedResourceFetchSequence()

        bitmap cache get -> background thread hand-off -> multiplex -> bitmap cache -> decode -> branch on separate images -> exif resize and rotate -> exif thumbnail creation -> local image resize and rotate -> add meta data producer -> multiplex -> encoded cache -> (webp transcode) -> qualified resource fetch.

      • getLocalResourceFetchSequence

         final Producer<CloseableReference<CloseableImage>> getLocalResourceFetchSequence()

        bitmap cache get -> background thread hand-off -> multiplex -> bitmap cache -> decode -> branch on separate images -> exif resize and rotate -> exif thumbnail creation -> local image resize and rotate -> add meta data producer -> multiplex -> encoded cache -> (webp transcode) -> local resource fetch.

      • getLocalAssetFetchSequence

         final Producer<CloseableReference<CloseableImage>> getLocalAssetFetchSequence()

        bitmap cache get -> background thread hand-off -> multiplex -> bitmap cache -> decode -> branch on separate images -> exif resize and rotate -> exif thumbnail creation -> local image resize and rotate -> add meta data producer -> multiplex -> encoded cache -> (webp transcode) -> local asset fetch.

      • getDataFetchSequence

         final Producer<CloseableReference<CloseableImage>> getDataFetchSequence()

        bitmap cache get -> background thread hand-off -> bitmap cache -> decode -> resize and rotate -> (webp transcode) -> data fetch.

      • getEncodedImageProducerSequence

         final Producer<CloseableReference<PooledByteBuffer>> getEncodedImageProducerSequence(ImageRequest imageRequest)

        Returns a sequence that can be used for a request for an encoded image from either network or local files.

        Parameters:
        imageRequest - the request that will be submitted
      • getEncodedImagePrefetchProducerSequence

         final Producer<Void> getEncodedImagePrefetchProducerSequence(ImageRequest imageRequest)

        Returns a sequence that can be used for a prefetch request for an encoded image.

        Guaranteed to return the same sequence as getEncodedImageProducerSequence(request), except that it is pre-pended with a SwallowResultProducer.

        Parameters:
        imageRequest - the request that will be submitted
      • getDecodedImageProducerSequence

         final Producer<CloseableReference<CloseableImage>> getDecodedImageProducerSequence(ImageRequest imageRequest)

        Returns a sequence that can be used for a request for a decoded image.

        Parameters:
        imageRequest - the request that will be submitted
      • newBitmapCacheGetToDecodeSequence

         final Producer<CloseableReference<CloseableImage>> newBitmapCacheGetToDecodeSequence(Producer<EncodedImage> inputProducer)

        Same as newBitmapCacheGetToBitmapCacheSequence but with an extra DecodeProducer.

        Parameters:
        inputProducer - producer providing the input to the decode