SurfaceDescriptor

data class SurfaceDescriptor(val surface: Surface, val resolution: Size, val targetRotation: Int = 0, val isEncoderInputSurface: Boolean = false)

A Surface with its resolution.

Parameters

surface

The Surface.

resolution

The resolution of the Surface.

targetRotation

The target rotation in Surface rotation (Surface.ROTATION_0, ...).

isEncoderInputSurface

Whether the Surface is used as an input for a video encoder.

Constructors

Link copied to clipboard
constructor(surface: Surface, resolution: Size, targetRotation: Int = 0, isEncoderInputSurface: Boolean = false)

Properties

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