public final class

AspectRatioUtil.CompareAspectRatiosByMappingAreaInFullFovAspectRatioSpace

extends java.lang.Object

implements java.util.Comparator<Rational>

 java.lang.Object

↳androidx.camera.core.impl.utils.AspectRatioUtil.CompareAspectRatiosByMappingAreaInFullFovAspectRatioSpace

Overview

Comparator based on how close they are to the target aspect ratio by comparing the transformed mapping area in the full FOV ratio space. The mapping area will be the region that the images of the specific aspect ratio cropped from the full FOV images. Therefore, we can compare the mapping areas to know which one is closer to the mapping area of the target aspect ratio setting.

Summary

Constructors
publicCompareAspectRatiosByMappingAreaInFullFovAspectRatioSpace(Rational targetRatio, Rational fullFovRatio)

Methods
public intcompare(Rational lhs, Rational rhs)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public CompareAspectRatiosByMappingAreaInFullFovAspectRatioSpace(Rational targetRatio, Rational fullFovRatio)

Methods

public int compare(Rational lhs, Rational rhs)