SnapshotResult

data class SnapshotResult(val jpeg: ByteArray, val width: Int, val height: Int, val timestampMs: Long, val source: SnapshotSource)

A single decoded JPEG frame plus its metadata, returned from SerenadaSession.captureSnapshot on success.

Constructors

Link copied to clipboard
constructor(jpeg: ByteArray, width: Int, height: Int, timestampMs: Long, source: SnapshotSource)

Properties

Link copied to clipboard
val height: Int

pixel height of the captured frame after rotation

Link copied to clipboard

encoded JPEG bytes at the source video track's full intrinsic resolution

Link copied to clipboard

which stream the frame was pulled from

Link copied to clipboard

wall-clock time the frame was captured (System.currentTimeMillis())

Link copied to clipboard
val width: Int

pixel width of the captured frame after rotation

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int