ISourceInfoProvider

Interface to get the orientation of the capture surface. These information are used to rotate the frames in the codec surface if the source needs to be rotated. It might not be the case for certain sources.

Inheritors

Properties

Link copied to clipboard
abstract val isMirror: Boolean

True if the source is natively mirrored.

Link copied to clipboard
@get:IntRange(from = 0, to = 359)
abstract val rotationDegrees: Int

Orientation in degrees of the source. For camera, it is the sensor orientation. To follow device rotation use, it is the current device rotation. Expected values: 0, 90, 180, 270.

Functions

Link copied to clipboard
@IntRange(from = 0, to = 359)
open fun getRelativeRotationDegrees(targetRotation: Int, requiredMirroring: Boolean): Int

Calculates the relative rotation between the source and the destination.

Link copied to clipboard
abstract fun getSurfaceSize(targetResolution: Size): Size

Gets the size of the surface to allocate to display the source.