Back to Fresco

QualityInfo

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

3.6.011.8 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Enums

Packages | Classes

Summary: Methods | [Expand All]

public interface

QualityInfo

| com.facebook.imagepipeline.image.QualityInfo |

| Known Indirect Subclasses

ImmutableQualityInfo

| ImmutableQualityInfo | Implementation of QualityInfo |

|

Class Overview

Interface for image quality information

Summary

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

Public Methods

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

+Generated by Doclava. +