public class

WebpTranscodeProducer

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

Class Overview

Transcodes WebP to JPEG / PNG.

If processed image is one of VP8, VP8X or VP8L non-animated WebPs then it is transcoded to jpeg if the decoder on the running version of Android does not support this format. This was the case prior to version 4.2.1.

If the image is not WebP, no transformation is applied.

Summary

Constants
String PRODUCER_NAME
Public Constructors
WebpTranscodeProducer(Executor executor, PooledByteBufferFactory pooledByteBufferFactory, Producer<EncodedImage> inputProducer)
Public Methods
void produceResults(Consumer<EncodedImage> consumer, ProducerContext context)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String PRODUCER_NAME

Constant Value: "WebpTranscodeProducer"

Public Constructors

public WebpTranscodeProducer (Executor executor, PooledByteBufferFactory pooledByteBufferFactory, Producer<EncodedImage> inputProducer)

Public Methods

public void produceResults (Consumer<EncodedImage> consumer, ProducerContext context)