NV21Image

class NV21Image(val width: Int, val height: Int, val nv21Data: ByteArray)

An image made of data in the NV21 format.

Constructors

Link copied to clipboard
constructor(image: Image)
constructor(yuvImage: YuvImage)
constructor(width: Int, height: Int, nv21Data: ByteArray)

Properties

Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val size: Size

The size of the NV21Image.

Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
fun crop(rect: Rect): NV21Image
fun crop(left: Int, top: Int, right: Int, bottom: Int): NV21Image

Crop a region of the NV21Image.

Link copied to clipboard
fun rotate(rotationDegrees: Int): NV21Image

Rotate the NV21 image an increment of 90 degrees.

Link copied to clipboard
fun toBitmap(renderScript: RenderScript): Bitmap

https://github.com/silvaren/easyrs/blob/c8eed0f0b713bbb1eb375aca23d615677e8adb3c/easyrs/src/main/java/io/github/silvaren/easyrs/tools/YuvToRgb.java

Link copied to clipboard