YuvHelper

open class YuvHelper

Wraps libyuv methods to Java. All passed byte buffers must be direct byte buffers.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun ABGRToI420(src: ByteBuffer, srcStride: Int, dstY: ByteBuffer, dstStrideY: Int, dstU: ByteBuffer, dstStrideU: Int, dstV: ByteBuffer, dstStrideV: Int, width: Int, height: Int)
Converts ABGR little endian (rgba in memory) to I420.
Link copied to clipboard
open fun copyPlane(src: ByteBuffer, srcStride: Int, dst: ByteBuffer, dstStride: Int, width: Int, height: Int)
Helper method for copying a single colour plane.
Link copied to clipboard
open fun I420Copy(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dst: ByteBuffer, dstWidth: Int, dstHeight: Int)
Helper method for copying I420 to tightly packed destination buffer.
open fun I420Copy(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dst: ByteBuffer, dstWidth: Int, dstHeight: Int, dstStride: Int, dstSliceHeight: Int)
Helper method for copying I420 to buffer with the given stride and slice height.
open fun I420Copy(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dst: ByteBuffer, dstWidth: Int, dstHeight: Int, dstStrideY: Int, dstSliceHeightY: Int, dstStrideU: Int, dstSliceHeightU: Int)
Copy I420 Buffer to a contiguously allocated buffer.
open fun I420Copy(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dstY: ByteBuffer, dstStrideY: Int, dstU: ByteBuffer, dstStrideU: Int, dstV: ByteBuffer, dstStrideV: Int, width: Int, height: Int)
Copies I420 to the I420 dst buffer.
Link copied to clipboard
open fun I420Rotate(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dst: ByteBuffer, srcWidth: Int, srcHeight: Int, rotationMode: Int)
Helper method for rotating I420 to tightly packed destination buffer.
open fun I420Rotate(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dstY: ByteBuffer, dstStrideY: Int, dstU: ByteBuffer, dstStrideU: Int, dstV: ByteBuffer, dstStrideV: Int, srcWidth: Int, srcHeight: Int, rotationMode: Int)
Link copied to clipboard
open fun I420ToNV12(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dst: ByteBuffer, dstWidth: Int, dstHeight: Int)
Helper method for copying I420 to tightly packed NV12 destination buffer.
open fun I420ToNV12(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dst: ByteBuffer, dstWidth: Int, dstHeight: Int, dstStrideY: Int, dstSliceHeightY: Int)
Copy I420 Buffer to a contiguously allocated buffer.
open fun I420ToNV12(srcY: ByteBuffer, srcStrideY: Int, srcU: ByteBuffer, srcStrideU: Int, srcV: ByteBuffer, srcStrideV: Int, dstY: ByteBuffer, dstStrideY: Int, dstUV: ByteBuffer, dstStrideUV: Int, width: Int, height: Int)