docs/javadoc/reference/com/facebook/imagepipeline/request/BasePostprocessor.html
|
|
Summary: Fields | Ctors | Methods | Inherited Methods | [Expand All]
public abstract class
extends Object
implements Postprocessor
| java.lang.Object | | ↳ | com.facebook.imagepipeline.request.BasePostprocessor |
| Known Direct Subclasses
BaseRepeatedPostProcessor, BlurPostProcessor, IterativeBoxBlurPostProcessor, RoundAsCirclePostprocessor, RoundPostprocessor, RoundedCornersPostprocessor
| BaseRepeatedPostProcessor | | | BlurPostProcessor | A java implementation of a blur post processor. | | IterativeBoxBlurPostProcessor | A fast and memory-efficient post processor performing an iterative box blur. | | RoundAsCirclePostprocessor | Postprocessor that rounds a given image as a circle. | | RoundPostprocessor | Postprocessor that rounds a given image as a circle using non-native code. | | RoundedCornersPostprocessor | |
|
Base implementation of Postprocessor interface.
Clients should override exactly one of the three provided process(Bitmap) methods.
| Fields |
|---|
| public static final Bitmap.Config |
| Public Constructors |
|---|
| Public Methods |
|---|
| String |
| Returns the name of this postprocessor. |
| CacheKey |
| The default implementation of the CacheKey for a Postprocessor is null |
| CloseableReference<Bitmap> |
| Clients should override this method only if the post-processed bitmap has to be of a different size than the source bitmap. |
| void |
| Clients should override this method if the post-processing cannot be done in place. |
| void |
| Clients should override this method if the post-processing can be done in place. |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
| | From interface com.facebook.imagepipeline.request.Postprocessor
| abstract String | getName() Returns the name of this postprocessor. | | abstract CacheKey | getPostprocessorCacheKey() Implement this method in order to cache the result of a postprocessor in the bitmap cache along with the unmodified image. | | abstract CloseableReference<Bitmap> | process(Bitmap sourceBitmap, PlatformBitmapFactory bitmapFactory) Called by the pipeline after completing other steps. |
|
The fallback bitmap configuration is used for creating a new destination bitmap when the source bitmap has config==null. This is the case for preview images for GIF animations.
Returns the name of this postprocessor.
Used for logging and analytics.
The default implementation of the CacheKey for a Postprocessor is null
Clients should override this method only if the post-processed bitmap has to be of a different size than the source bitmap. If the post-processed bitmap is of the same size, clients should override one of the other two methods.
The source bitmap must not be modified as it may be shared by the other clients. The implementation must create a new bitmap that is safe to be modified and return a reference to it. Clients should use bitmapFactory to create a new bitmap.
| sourceBitmap | The source bitmap. | | bitmapFactory | The factory to create a destination bitmap. |
Clients should override this method if the post-processing cannot be done in place. If the post-processing can be done in place, clients should override the process(Bitmap) method.
The provided destination bitmap is of the same size as the source bitmap. There are no guarantees on the initial content of the destination bitmap, so the implementation has to make sure that it properly populates it.
The source bitmap must not be modified as it may be shared by the other clients. The implementation must use the provided destination bitmap as its output.
| destBitmap | the destination bitmap to be used as output | | sourceBitmap | the source bitmap to be used as input |
Clients should override this method if the post-processing can be done in place.
The provided bitmap is a copy of the source bitmap and the implementation is free to modify it.
| bitmap | the bitmap to be used both as input and as output |
+Generated by Doclava. +