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
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun NV21toYUV420byColor(input: Array<Byte>, width: Int, height: Int, formatVideoEncoder: FormatVideoEncoder): Array<Byte>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun YV12toYUV420byColor(input: Array<Byte>, width: Int, height: Int, formatVideoEncoder: FormatVideoEncoder): Array<Byte>