Input

interface Input

Defines the image input source model that is available to be read from by the processor.

Types

BackedBySurfaceTexture
Link copied to clipboard
abstract class BackedBySurfaceTexture(surfaceTexture: SurfaceTexture) : ImageProcessor.Input
Convenience base Input that is backed by android.graphics.SurfaceTexture.
Capability
Link copied to clipboard
enum Capability : Enum<ImageProcessor.Input.Capability>
Defines all capabilities that Input may provide in addition to image data.
Companion
Link copied to clipboard
object Companion
Allows to attach extension functions to the Input interface on implementation side.
Frame
Link copied to clipboard
interface Frame
Defines the properties of a single image input Frame available from Input.readFrame.
Option
Link copied to clipboard
sealed class Option
Defines possible Input usage options that ImageProcessor should consider when interacting with it.
Pausable
Link copied to clipboard
interface Pausable : ImageProcessor.Input, Closeable
Defines an Input that provides an ability to pause and resume frame updates.

Functions

attachToGlContext
Link copied to clipboard
abstract fun attachToGlContext(textureId: Int)
detachFromGlContext
Link copied to clipboard
abstract fun detachFromGlContext()
readFrame
Link copied to clipboard
abstract fun readFrame(): ImageProcessor.Input.Frame
Allows to read a Frame when notified by in a callback subscribed via subscribeTo.
subscribeTo
Link copied to clipboard
abstract fun subscribeTo(onFrameAvailable: Consumer<ImageProcessor.Input>): Closeable
Subscribes to the provided onFrameAvailable to be notified when a new Frame is available for this input.

Properties

facingFront
Link copied to clipboard
abstract val facingFront: Boolean
True indicates whether a Frame is facing front in relation to user that is observing it.
height
Link copied to clipboard
abstract val height: Int
The expected height in pixels of a Frame that is read once available.
rotationDegrees
Link copied to clipboard
abstract val rotationDegrees: Int
The natural orientation of a Frame in relation to a device that is providing it.
width
Link copied to clipboard
abstract val width: Int
The expected width in pixels of a Frame that is read once available.

Inheritors

ImageProcessor.Input
Link copied to clipboard
ImageProcessor.Input
Link copied to clipboard