data class Image
Data class to wrap preview frames or captured image data.
data
- preview/capture frame data ByteArray
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
Image(data: ByteArray, width: Int, height: Int, exifInterface: <ERROR CLASS>, format: Int)
Data class to wrap preview frames or captured image data. |
val data: ByteArray
preview/capture frame data ByteArray |
|
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 |
|
val format: Int |
|
val height: Int
of the frame |
|
val width: Int
of the frame |
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |