cameraViewEx / com.priyankvasa.android.cameraviewex / Image

Image

data class Image

Data class to wrap preview frames or captured image data.

Parameters

data - preview/capture frame data ByteArray

width - of the frame

height - of the frame

exifInterface - contains frame metadata like orientation by which the frame needs to be rotated The orientation ExifInterface.TAG_ORIENTATION would be one of ExifInterface.ORIENTATION_NORMAL // does not need rotation ExifInterface.ORIENTATION_ROTATE_90 // needs 90 degree rotation ExifInterface.ORIENTATION_ROTATE_180 // needs 180 degree rotation ExifInterface.ORIENTATION_ROTATE_270 // needs 270 degree rotation

Constructors

<init>

Image(data: ByteArray, width: Int, height: Int, exifInterface: <ERROR CLASS>, format: Int)

Data class to wrap preview frames or captured image data.

Properties

data

val data: ByteArray

preview/capture frame data ByteArray

exifInterface

val exifInterface: <ERROR CLASS>

contains frame metadata like orientation by which the frame needs to be rotated The orientation ExifInterface.TAG_ORIENTATION would be one of ExifInterface.ORIENTATION_NORMAL // does not need rotation ExifInterface.ORIENTATION_ROTATE_90 // needs 90 degree rotation ExifInterface.ORIENTATION_ROTATE_180 // needs 180 degree rotation ExifInterface.ORIENTATION_ROTATE_270 // needs 270 degree rotation

format

val format: Int

height

val height: Int

of the frame

width

val width: Int

of the frame

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int