cameraViewEx / com.priyankvasa.android.cameraviewex / Image / <init>

<init>

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

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