SurfaceDescriptor

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

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.