java.lang.Object | |
↳ | com.facebook.imagepipeline.image.ImmutableQualityInfo |
Implementation of QualityInfo
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final QualityInfo | FULL_QUALITY |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object other) | ||||||||||
int |
getQuality()
Used only to compare quality of two images that points to the same resource (uri).
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isOfFullQuality()
Whether the image is of full quality.
| ||||||||||
boolean |
isOfGoodEnoughQuality()
Whether the image is of good-enough quality.
| ||||||||||
static QualityInfo | of(int quality, boolean isOfGoodEnoughQuality, boolean isOfFullQuality) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.imagepipeline.image.QualityInfo
|
Used only to compare quality of two images that points to the same resource (uri).
Higher number means higher quality.
This is useful for caching in order to determine whether the new result is of higher quality than what's already in the cache.
Whether the image is of full quality.
For progressive JPEGs, this is the final scan. For other image types, this is always true.
Whether the image is of good-enough quality.
When fetching image progressively, the few first results can be of really poor quality, but eventually, they get really close to original image, and we mark those as good-enough.