rotate YUV21Image
fun rotateYUV21Image(cameraRotation: Int, data: ByteArray, imageWidth: Int, imageHeight: Int): ByteArray
Rotates YUV21 image
Return
rotated YUV image byte array
Parameters
camera Rotation
rotation degrees (0, 90, 180, 270)
data
source image byte array
image Width
source image width
image Height
source image height