-
- All Implemented Interfaces:
-
com.facebook.imagepipeline.image.QualityInfo
public class ImmutableQualityInfo implements QualityInfo
Implementation of QualityInfo
-
-
Field Summary
Fields Modifier and Type Field Description public final static QualityInfoFULL_QUALITY
-
Method Summary
Modifier and Type Method Description intgetQuality()Used only to compare quality of two images that points to the same resource (uri). booleanisOfGoodEnoughQuality()Whether the image is of good-enough quality. booleanisOfFullQuality()Whether the image is of full quality. inthashCode()booleanequals(@Nullable() Object other)static QualityInfoof(int quality, boolean isOfGoodEnoughQuality, boolean isOfFullQuality)-
-
Method Detail
-
getQuality
int getQuality()
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 qualitythan what's already in the cache.
-
isOfGoodEnoughQuality
boolean isOfGoodEnoughQuality()
Whether the image is of good-enough quality.
When fetching image progressively, the few first results can be of really poor quality, buteventually, they get really close to original image, and we mark those as good-enough.
-
isOfFullQuality
boolean isOfFullQuality()
Whether the image is of full quality.
For progressive JPEGs, this is the final scan. For other image types, this is always true.
-
hashCode
int hashCode()
-
of
static QualityInfo of(int quality, boolean isOfGoodEnoughQuality, boolean isOfFullQuality)
-
-
-
-