TextureViewMeteringPointFactory

open class TextureViewMeteringPointFactory : MeteringPointFactory
kotlin.Any
   ↳ androidx.camera.core.MeteringPointFactory
   ↳ androidx.camera.view.TextureViewMeteringPointFactory

A MeteringPointFactory for creating a MeteringPoint by TextureView and (x,y).

SurfaceTexture in TextureView could be cropped, scaled or rotated by TextureView#getTransform(Matrix). This factory translates the (x, y) into the sensor crop region normalized (x,y) by this transform. SurfaceTexture#getTransformMatrix is also used during the translation. No lens facing information is required because SurfaceTexture#getTransformMatrix contains the necessary transformation corresponding to the lens face of current camera ouput.

Summary

Public constructors

<init>(@NonNull textureView: TextureView)

Inherited functions

Public constructors

<init>

TextureViewMeteringPointFactory(@NonNull textureView: TextureView)