Output

interface Output

Defines the image output model that is available to write to by a ImageProcessor.

Types

BackedBySurface
Link copied to clipboard
abstract class BackedBySurface(surface: Surface, purpose: ImageProcessor.Output.Purpose) : ImageProcessor.Output
Convenience base Output that is backed by android.view.Surface.
BackedBySurfaceTexture
Link copied to clipboard
abstract class BackedBySurfaceTexture(surfaceTexture: SurfaceTexture, purpose: ImageProcessor.Output.Purpose) : ImageProcessor.Output
Convenience base Output that is backed by android.graphics.SurfaceTexture.
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 properties of a single image output Frame available from Output.writeFrame.
Option
Link copied to clipboard
sealed class Option
Defines possible Output usage options that ImageProcessor should consider when interacting with it.
Purpose
Link copied to clipboard
enum Purpose : Enum<ImageProcessor.Output.Purpose>
Defines all known purposes that this output can be used for.

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
abstract 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.

Inheritors

ImageProcessor.Output
Link copied to clipboard
ImageProcessor.Output
Link copied to clipboard