Added in API level 34

StillCaptureLatency


class StillCaptureLatency
kotlin.Any
   ↳ android.hardware.camera2.CameraExtensionSession.StillCaptureLatency

Realtime calculated still capture latency.

Summary

Public constructors
StillCaptureLatency(captureLatency: Long, processingLatency: Long)

Public methods
Boolean
equals(other: Any?)

Long

Return the capture latency from ExtensionCaptureCallback#onCaptureStarted until ExtensionCaptureCallback#onCaptureProcessStarted.

Long

Return the estimated post-processing latency from ExtensionCaptureCallback#onCaptureProcessStarted until the processed frame returns to the client.

Int

String

Public constructors

StillCaptureLatency

Added in API level 34
StillCaptureLatency(
    captureLatency: Long,
    processingLatency: Long)

Public methods

equals

Added in API level 34
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getCaptureLatency

Added in API level 34
fun getCaptureLatency(): Long

Return the capture latency from ExtensionCaptureCallback#onCaptureStarted until ExtensionCaptureCallback#onCaptureProcessStarted.

Return
Long The realtime capture latency in milliseconds.

getProcessingLatency

Added in API level 34
fun getProcessingLatency(): Long

Return the estimated post-processing latency from ExtensionCaptureCallback#onCaptureProcessStarted until the processed frame returns to the client.

Return
Long returns post-processing latency in milliseconds

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 34
fun toString(): String
Return
String a string representation of the object.