rotateYUV21Image

fun rotateYUV21Image(cameraRotation: Int, data: ByteArray, imageWidth: Int, imageHeight: Int): ByteArray

Rotates YUV21 image

Return

rotated YUV image byte array

Parameters

cameraRotation

rotation degrees (0, 90, 180, 270)

data

source image byte array

imageWidth

source image width

imageHeight

source image height