MediaSampleMetadata

data class MediaSampleMetadata(val timestamp: CValue<CMTime>, val orientation: CameraOrientation, val isMirrored: Boolean)

The timestamp, orientation and mirroring of a captured media sample.

This is an extension point for plugin modules, available on a NativeFrame or a NativeDepth.

Constructors

Link copied to clipboard
constructor(timestamp: CValue<CMTime>, orientation: CameraOrientation, isMirrored: Boolean)

Properties

Link copied to clipboard

Whether the sample is mirrored, relative to its output.

Link copied to clipboard

The orientation of the sample, relative to its output.

Link copied to clipboard
val timestamp: CValue<CMTime>

The presentation timestamp of the sample.

Link copied to clipboard

The timestamp, in nanoseconds.

Link copied to clipboard
val uiImageOrientation: UIImageOrientation

The UIImageOrientation of the sample, combining its orientation and isMirrored.