java.lang.Object | |
↳ | com.facebook.imagepipeline.common.ImageDecodeOptions |
Options for changing the behavior of the ImageDecoder
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public final Bitmap.Config | bitmapConfig | StaticImage and JPEG will decode with this config; | |||||||||
public final ImageDecoder | customImageDecoder | Custom image decoder override. | |||||||||
public final boolean | decodeAllFrames | Whether to decode all the frames and store them in memory. | |||||||||
public final boolean | decodePreviewFrame | Whether to decode a preview frame for animated images. | |||||||||
public final boolean | forceStaticImage | Force image to be rendered as a static image, even if it is an animated format. | |||||||||
public final int | minDecodeIntervalMs | Decoding of intermediate results for an image won't happen more often that minDecodeIntervalMs. | |||||||||
public final boolean | useLastFrameForPreview | Indicates that the last frame should be used as the preview frame instead of the first. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ImageDecodeOptions(ImageDecodeOptionsBuilder b) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static ImageDecodeOptions |
defaults()
Gets the default options.
| ||||||||||
boolean | equals(Object o) | ||||||||||
int | hashCode() | ||||||||||
static ImageDecodeOptionsBuilder |
newBuilder()
Creates a new builder.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
StaticImage and JPEG will decode with this config;
Whether to decode all the frames and store them in memory. This should only ever be used for animations that are known to be small (e.g. stickers). Caching dozens of large Bitmaps in memory for general GIFs or WebP's will not fit in memory.
Whether to decode a preview frame for animated images.
Force image to be rendered as a static image, even if it is an animated format. This flag will force animated GIFs to be rendered as static images
Decoding of intermediate results for an image won't happen more often that minDecodeIntervalMs.
Indicates that the last frame should be used as the preview frame instead of the first.