BackedBySurfaceTexture

abstract class BackedBySurfaceTexture(val surfaceTexture: SurfaceTexture) : ImageProcessor.Input

Convenience base Input that is backed by android.graphics.SurfaceTexture.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Allows to read a Frame when notified by in a callback subscribed via subscribeTo.

Link copied to clipboard

Subscribes to the provided onFrameAvailable to be notified when a new Frame is available for this input. The returned Closeable must be closed when done working with this input otherwise underlying resources will be leaked.

Properties

Link copied to clipboard
abstract val facingFront: Boolean

True indicates whether a Frame is facing front in relation to user that is observing it.

Link copied to clipboard
abstract val height: Int

The expected height in pixels of a Frame that is read once available.

Link copied to clipboard
abstract val rotationDegrees: Int

The natural orientation of a Frame in relation to a device that is providing it.

Link copied to clipboard
Link copied to clipboard
abstract val width: Int

The expected width in pixels of a Frame that is read once available.