SurfaceOutput

class SurfaceOutput(val surface: Surface, val resolution: Size, val isStreaming: () -> Boolean, transformationInfo: SurfaceOutput.TransformationInfo) : AbstractSurfaceOutput

Constructors

Link copied to clipboard
constructor(surface: Surface, resolution: Size, isStreaming: () -> Boolean, transformationInfo: SurfaceOutput.TransformationInfo)

Types

Link copied to clipboard
data class TransformationInfo(val aspectRatioMode: AspectRatioMode, val targetRotation: Int, val cropRect: Rect, val needMirroring: Boolean, val infoProvider: ISourceInfoProvider)

Properties

Link copied to clipboard
protected var isClosed: Boolean
Link copied to clipboard
open override val isStreaming: () -> Boolean
Link copied to clipboard
protected val lock: Any
Link copied to clipboard
override val resolution: Size
Link copied to clipboard
@IntRange(from = 0, to = 359)
val rotationDegrees: Int
Link copied to clipboard
@IntRange(from = 0, to = 359)
val sourceRotationDegrees: Int
Link copied to clipboard
open override val surface: Surface
Link copied to clipboard
open override val viewportRect: Rect

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun updateTransformMatrix(output: FloatArray, input: FloatArray)