YUVUtil

open class YUVUtil

Created by pedro on 25/01/17. https://wiki.videolan.org/YUV/#I420 Example YUV images 4x4 px. NV21 example: Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 Y11 Y12 Y13 Y14 Y15 Y16 U1 V1 U2 V2 U3 V3 U4 V4 YV12 example: Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 Y11 Y12 Y13 Y14 Y15 Y16 U1 U2 U3 U4 V1 V2 V3 V4 YUV420 planar example (I420): Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 Y11 Y12 Y13 Y14 Y15 Y16 V1 V2 V3 V4 U1 U2 U3 U4 YUV420 semi planar example (NV12): Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 Y11 Y12 Y13 Y14 Y15 Y16 V1 U1 V2 U2 V3 U3 V4 U4

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun ARGBtoYUV420SemiPlanar(input: Array<Int>, width: Int, height: Int): Array<Byte>
Link copied to clipboard
open fun CropYuv(src_format: Int, src_yuv: Array<Byte>, src_width: Int, src_height: Int, dst_width: Int, dst_height: Int): Array<Byte>
Link copied to clipboard
open fun frameToBitmap(frame: Frame, width: Int, height: Int, orientation: Int): Bitmap
Link copied to clipboard
open fun NV21toYUV420byColor(input: Array<Byte>, width: Int, height: Int, formatVideoEncoder: FormatVideoEncoder): Array<Byte>
Link copied to clipboard
open fun preAllocateBuffers(length: Int)
Link copied to clipboard
open fun rotateNV21(data: Array<Byte>, width: Int, height: Int, rotation: Int): Array<Byte>
Link copied to clipboard
open fun rotateYV12(data: Array<Byte>, width: Int, height: Int, rotation: Int): Array<Byte>
Link copied to clipboard
open fun YV12toYUV420byColor(input: Array<Byte>, width: Int, height: Int, formatVideoEncoder: FormatVideoEncoder): Array<Byte>