cameraViewEx / com.priyankvasa.android.cameraviewex / LegacyImage

LegacyImage

data class LegacyImage

Data class to wrap frame data generated from preview frame listener for Camera1.

Parameters

data - preview frame data ByteArray

width - of the preview frame

height - of the preview frame

format - image format of preview frame android.graphics.ImageFormat. Usually this would be android.graphics.ImageFormat.NV21

Constructors

<init>

LegacyImage(data: ByteArray, width: Int, height: Int, format: Int)

Data class to wrap frame data generated from preview frame listener for Camera1.

Properties

data

val data: ByteArray

preview frame data ByteArray

format

val format: Int

image format of preview frame android.graphics.ImageFormat. Usually this would be android.graphics.ImageFormat.NV21

height

val height: Int

of the preview frame

width

val width: Int

of the preview frame

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int