public class

DecodeProducer

extends Object
implements Producer<T>
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.DecodeProducer

Class Overview

Decodes images.

Progressive JPEGs are decoded progressively as new data arrives.

Summary

Constants
String ENCODED_IMAGE_SIZE
String EXTRA_BITMAP_SIZE
String EXTRA_HAS_GOOD_QUALITY
String EXTRA_IMAGE_FORMAT_NAME
String EXTRA_IS_FINAL
String PRODUCER_NAME
String REQUESTED_IMAGE_SIZE
String SAMPLE_SIZE
Public Constructors
DecodeProducer(ByteArrayPool byteArrayPool, Executor executor, ImageDecoder imageDecoder, ProgressiveJpegConfig progressiveJpegConfig, boolean downsampleEnabled, boolean downsampleEnabledForNetwork, boolean decodeCancellationEnabled, Producer<EncodedImage> inputProducer)
Public Methods
void produceResults(Consumer<CloseableReference<CloseableImage>> consumer, ProducerContext producerContext)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String ENCODED_IMAGE_SIZE

Constant Value: "encodedImageSize"

public static final String EXTRA_BITMAP_SIZE

Constant Value: "bitmapSize"

public static final String EXTRA_HAS_GOOD_QUALITY

Constant Value: "hasGoodQuality"

public static final String EXTRA_IMAGE_FORMAT_NAME

Constant Value: "imageFormat"

public static final String EXTRA_IS_FINAL

Constant Value: "isFinal"

public static final String PRODUCER_NAME

Constant Value: "DecodeProducer"

public static final String REQUESTED_IMAGE_SIZE

Constant Value: "requestedImageSize"

public static final String SAMPLE_SIZE

Constant Value: "sampleSize"

Public Constructors

public DecodeProducer (ByteArrayPool byteArrayPool, Executor executor, ImageDecoder imageDecoder, ProgressiveJpegConfig progressiveJpegConfig, boolean downsampleEnabled, boolean downsampleEnabledForNetwork, boolean decodeCancellationEnabled, Producer<EncodedImage> inputProducer)

Public Methods

public void produceResults (Consumer<CloseableReference<CloseableImage>> consumer, ProducerContext producerContext)