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

<init>

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

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