ARDK 1.5.6
fun yToRgb(y: ByteArray, width: Int, height: Int, yRowStride: Int, fullRange: Boolean, format: CameraFrame.Format): ByteArray
Converts the luminance plane of a YUV image to an RGB888 grayscale image.
Each luminance value is replicated across the R, G and B channels.
Return
The RGB888 grayscale image.
Parameters
y
The luminance (Y) plane.
width
The image width in pixels.
height
The image height in pixels.
yRowStride
The row stride of the Y plane.