public class

ProducerFactory

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.core.ProducerFactory

Summary

Fields
protected AssetManager mAssetManager
protected final MemoryCache<CacheKeyCloseableImage> mBitmapMemoryCache
protected boolean mBitmapPrepareToDrawForPrefetch
protected final int mBitmapPrepareToDrawMaxSizeBytes
protected final int mBitmapPrepareToDrawMinSizeBytes
protected final ByteArrayPool mByteArrayPool
protected final CacheKeyFactory mCacheKeyFactory
protected final CloseableReferenceFactory mCloseableReferenceFactory
protected ContentResolver mContentResolver
protected final boolean mDecodeCancellationEnabled
protected final BufferedDiskCache mDefaultBufferedDiskCache
protected final BoundedLinkedHashSet<CacheKey> mDiskCacheHistory
protected final boolean mDownsampleEnabled
protected final MemoryCache<CacheKeyPooledByteBuffer> mEncodedMemoryCache
protected final BoundedLinkedHashSet<CacheKey> mEncodedMemoryCacheHistory
protected final ExecutorSupplier mExecutorSupplier
protected final ImageDecoder mImageDecoder
protected final boolean mKeepCancelledFetchAsLowPriority
protected final int mMaxBitmapSize
protected final PlatformBitmapFactory mPlatformBitmapFactory
protected final PooledByteBufferFactory mPooledByteBufferFactory
protected final ProgressiveJpegConfig mProgressiveJpegConfig
protected final boolean mResizeAndRotateEnabledForNetwork
protected Resources mResources
protected final BufferedDiskCache mSmallImageBufferedDiskCache
Public Constructors
ProducerFactory(Context context, ByteArrayPool byteArrayPool, ImageDecoder imageDecoder, ProgressiveJpegConfig progressiveJpegConfig, boolean downsampleEnabled, boolean resizeAndRotateEnabledForNetwork, boolean decodeCancellationEnabled, ExecutorSupplier executorSupplier, PooledByteBufferFactory pooledByteBufferFactory, MemoryCache<CacheKeyCloseableImage> bitmapMemoryCache, MemoryCache<CacheKeyPooledByteBuffer> encodedMemoryCache, BufferedDiskCache defaultBufferedDiskCache, BufferedDiskCache smallImageBufferedDiskCache, CacheKeyFactory cacheKeyFactory, PlatformBitmapFactory platformBitmapFactory, int bitmapPrepareToDrawMinSizeBytes, int bitmapPrepareToDrawMaxSizeBytes, boolean bitmapPrepareToDrawForPrefetch, int maxBitmapSize, CloseableReferenceFactory closeableReferenceFactory, boolean keepCancelledFetchAsLowPriority, int trackedKeysSize)
Public Methods
static AddImageTransformMetaDataProducer newAddImageTransformMetaDataProducer(Producer<EncodedImage> inputProducer)
<T> Producer<T> newBackgroundThreadHandoffProducer(Producer<T> inputProducer, ThreadHandoffProducerQueue inputThreadHandoffProducerQueue)
BitmapMemoryCacheGetProducer newBitmapMemoryCacheGetProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
BitmapMemoryCacheKeyMultiplexProducer newBitmapMemoryCacheKeyMultiplexProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
BitmapMemoryCacheProducer newBitmapMemoryCacheProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
BitmapPrepareProducer newBitmapPrepareProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
BitmapProbeProducer newBitmapProbeProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
static BranchOnSeparateImagesProducer newBranchOnSeparateImagesProducer(Producer<EncodedImage> inputProducer1, Producer<EncodedImage> inputProducer2)
Producer<EncodedImage> newCombinedNetworkAndCacheProducer(NetworkFetcher networkFetcher)
DataFetchProducer newDataFetchProducer()
DecodeProducer newDecodeProducer(Producer<EncodedImage> inputProducer)
DelayProducer newDelayProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
DiskCacheReadProducer newDiskCacheReadProducer(Producer<EncodedImage> inputProducer)
DiskCacheWriteProducer newDiskCacheWriteProducer(Producer<EncodedImage> inputProducer)
EncodedCacheKeyMultiplexProducer newEncodedCacheKeyMultiplexProducer(Producer<EncodedImage> inputProducer)
EncodedMemoryCacheProducer newEncodedMemoryCacheProducer(Producer<EncodedImage> inputProducer)
EncodedProbeProducer newEncodedProbeProducer(Producer<EncodedImage> inputProducer)
LocalAssetFetchProducer newLocalAssetFetchProducer()
LocalContentUriFetchProducer newLocalContentUriFetchProducer()
LocalContentUriThumbnailFetchProducer newLocalContentUriThumbnailFetchProducer()
LocalExifThumbnailProducer newLocalExifThumbnailProducer()
LocalFileFetchProducer newLocalFileFetchProducer()
LocalResourceFetchProducer newLocalResourceFetchProducer()
LocalVideoThumbnailProducer newLocalVideoThumbnailProducer()
Producer<EncodedImage> newNetworkFetchProducer(NetworkFetcher networkFetcher)
static <T> NullProducer<T> newNullProducer()
PartialDiskCacheProducer newPartialDiskCacheProducer(Producer<EncodedImage> inputProducer)
PostprocessedBitmapMemoryCacheProducer newPostprocessorBitmapMemoryCacheProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
PostprocessorProducer newPostprocessorProducer(Producer<CloseableReference<CloseableImage>> inputProducer)
QualifiedResourceFetchProducer newQualifiedResourceFetchProducer()
ResizeAndRotateProducer newResizeAndRotateProducer(Producer<EncodedImage> inputProducer, boolean isResizingEnabled, ImageTranscoderFactory imageTranscoderFactory)
<T> SwallowResultProducer<T> newSwallowResultProducer(Producer<T> inputProducer)
<T> ThrottlingProducer<T> newThrottlingProducer(Producer<T> inputProducer)
ThumbnailBranchProducer newThumbnailBranchProducer(ThumbnailProducer[]<EncodedImage> thumbnailProducers)
WebpTranscodeProducer newWebpTranscodeProducer(Producer<EncodedImage> inputProducer)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected AssetManager mAssetManager

protected final MemoryCache<CacheKeyCloseableImage> mBitmapMemoryCache

protected boolean mBitmapPrepareToDrawForPrefetch

protected final int mBitmapPrepareToDrawMaxSizeBytes

protected final int mBitmapPrepareToDrawMinSizeBytes

protected final ByteArrayPool mByteArrayPool

protected final CacheKeyFactory mCacheKeyFactory

protected final CloseableReferenceFactory mCloseableReferenceFactory

protected ContentResolver mContentResolver

protected final boolean mDecodeCancellationEnabled

protected final BufferedDiskCache mDefaultBufferedDiskCache

protected final BoundedLinkedHashSet<CacheKey> mDiskCacheHistory

protected final boolean mDownsampleEnabled

protected final MemoryCache<CacheKeyPooledByteBuffer> mEncodedMemoryCache

protected final BoundedLinkedHashSet<CacheKey> mEncodedMemoryCacheHistory

protected final ExecutorSupplier mExecutorSupplier

protected final ImageDecoder mImageDecoder

protected final boolean mKeepCancelledFetchAsLowPriority

protected final int mMaxBitmapSize

protected final PlatformBitmapFactory mPlatformBitmapFactory

protected final PooledByteBufferFactory mPooledByteBufferFactory

protected final ProgressiveJpegConfig mProgressiveJpegConfig

protected final boolean mResizeAndRotateEnabledForNetwork

protected Resources mResources

protected final BufferedDiskCache mSmallImageBufferedDiskCache

Public Constructors

public ProducerFactory (Context context, ByteArrayPool byteArrayPool, ImageDecoder imageDecoder, ProgressiveJpegConfig progressiveJpegConfig, boolean downsampleEnabled, boolean resizeAndRotateEnabledForNetwork, boolean decodeCancellationEnabled, ExecutorSupplier executorSupplier, PooledByteBufferFactory pooledByteBufferFactory, MemoryCache<CacheKeyCloseableImage> bitmapMemoryCache, MemoryCache<CacheKeyPooledByteBuffer> encodedMemoryCache, BufferedDiskCache defaultBufferedDiskCache, BufferedDiskCache smallImageBufferedDiskCache, CacheKeyFactory cacheKeyFactory, PlatformBitmapFactory platformBitmapFactory, int bitmapPrepareToDrawMinSizeBytes, int bitmapPrepareToDrawMaxSizeBytes, boolean bitmapPrepareToDrawForPrefetch, int maxBitmapSize, CloseableReferenceFactory closeableReferenceFactory, boolean keepCancelledFetchAsLowPriority, int trackedKeysSize)

Public Methods

public static AddImageTransformMetaDataProducer newAddImageTransformMetaDataProducer (Producer<EncodedImage> inputProducer)

public Producer<T> newBackgroundThreadHandoffProducer (Producer<T> inputProducer, ThreadHandoffProducerQueue inputThreadHandoffProducerQueue)

public BitmapMemoryCacheGetProducer newBitmapMemoryCacheGetProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public BitmapMemoryCacheKeyMultiplexProducer newBitmapMemoryCacheKeyMultiplexProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public BitmapMemoryCacheProducer newBitmapMemoryCacheProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public BitmapPrepareProducer newBitmapPrepareProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public BitmapProbeProducer newBitmapProbeProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public static BranchOnSeparateImagesProducer newBranchOnSeparateImagesProducer (Producer<EncodedImage> inputProducer1, Producer<EncodedImage> inputProducer2)

public Producer<EncodedImage> newCombinedNetworkAndCacheProducer (NetworkFetcher networkFetcher)

public DataFetchProducer newDataFetchProducer ()

public DecodeProducer newDecodeProducer (Producer<EncodedImage> inputProducer)

public DelayProducer newDelayProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public DiskCacheReadProducer newDiskCacheReadProducer (Producer<EncodedImage> inputProducer)

public DiskCacheWriteProducer newDiskCacheWriteProducer (Producer<EncodedImage> inputProducer)

public EncodedCacheKeyMultiplexProducer newEncodedCacheKeyMultiplexProducer (Producer<EncodedImage> inputProducer)

public EncodedMemoryCacheProducer newEncodedMemoryCacheProducer (Producer<EncodedImage> inputProducer)

public EncodedProbeProducer newEncodedProbeProducer (Producer<EncodedImage> inputProducer)

public LocalAssetFetchProducer newLocalAssetFetchProducer ()

public LocalContentUriFetchProducer newLocalContentUriFetchProducer ()

public LocalContentUriThumbnailFetchProducer newLocalContentUriThumbnailFetchProducer ()

public LocalExifThumbnailProducer newLocalExifThumbnailProducer ()

public LocalFileFetchProducer newLocalFileFetchProducer ()

public LocalResourceFetchProducer newLocalResourceFetchProducer ()

public LocalVideoThumbnailProducer newLocalVideoThumbnailProducer ()

public Producer<EncodedImage> newNetworkFetchProducer (NetworkFetcher networkFetcher)

public static NullProducer<T> newNullProducer ()

public PartialDiskCacheProducer newPartialDiskCacheProducer (Producer<EncodedImage> inputProducer)

public PostprocessedBitmapMemoryCacheProducer newPostprocessorBitmapMemoryCacheProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public PostprocessorProducer newPostprocessorProducer (Producer<CloseableReference<CloseableImage>> inputProducer)

public QualifiedResourceFetchProducer newQualifiedResourceFetchProducer ()

public ResizeAndRotateProducer newResizeAndRotateProducer (Producer<EncodedImage> inputProducer, boolean isResizingEnabled, ImageTranscoderFactory imageTranscoderFactory)

public SwallowResultProducer<T> newSwallowResultProducer (Producer<T> inputProducer)

public ThrottlingProducer<T> newThrottlingProducer (Producer<T> inputProducer)

public ThumbnailBranchProducer newThumbnailBranchProducer (ThumbnailProducer[]<EncodedImage> thumbnailProducers)

public WebpTranscodeProducer newWebpTranscodeProducer (Producer<EncodedImage> inputProducer)