Back to Fresco

ImmutableQualityInfo

docs/javadoc/reference/com/facebook/imagepipeline/image/ImmutableQualityInfo.html

3.6.013.8 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Enums

Packages | Classes

Summary: Fields | Methods | Inherited Methods | [Expand All]

public class

ImmutableQualityInfo

extends Object
implements QualityInfo

| java.lang.Object | | ↳ | com.facebook.imagepipeline.image.ImmutableQualityInfo |

Class Overview

Implementation of QualityInfo

Summary

Fields
public static final QualityInfo
Public Methods
boolean
int
Used only to compare quality of two images that points to the same resource (uri).
int
boolean
Whether the image is of full quality.
boolean
Whether the image is of good-enough quality.
static QualityInfo

| [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.image.QualityInfo

| abstract int | getQuality() Used only to compare quality of two images that points to the same resource (uri). | | abstract boolean | isOfFullQuality() Whether the image is of full quality. | | abstract boolean | isOfGoodEnoughQuality() Whether the image is of good-enough quality. |

|

Fields

public static final QualityInfo FULL_QUALITY

Public Methods

public boolean equals(Object other)

public 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 quality than what's already in the cache.

public int hashCode()

public 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.

public boolean isOfGoodEnoughQuality()

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.

public static QualityInfo of(int quality, boolean isOfGoodEnoughQuality, boolean isOfFullQuality)

+Generated by Doclava. +