BackedBySurface

abstract class BackedBySurface(surface: Surface, purpose: ImageProcessor.Output.Purpose) : ImageProcessor.Output

Convenience base Output that is backed by android.view.Surface.

Constructors

BackedBySurface
Link copied to clipboard
fun BackedBySurface(surface: Surface, purpose: ImageProcessor.Output.Purpose)

Functions

writeFrame
Link copied to clipboard
abstract fun writeFrame(): ImageProcessor.Output.Frame
Prepares a Frame to obtain information that is required for ImageProcessor to render.

Properties

purpose
Link copied to clipboard
open override val purpose: ImageProcessor.Output.Purpose
Provides the single purpose of this output so that ImageProcessor can adjust its internal implementation to write image data optimized for it.
rotationDegrees
Link copied to clipboard
open val rotationDegrees: Int
The natural orientation of a Frame in relation to a device that is rendering it.
surface
Link copied to clipboard
open val surface: Surface