NV12Buffer

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, stride: Int, sliceHeight: Int, buffer: ByteBuffer, @Nullable releaseCallback: Runnable)

Properties

Link copied to clipboard
val height: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
open fun cropAndScale(cropX: Int, cropY: Int, cropWidth: Int, cropHeight: Int, scaleWidth: Int, scaleHeight: Int): VideoFrame.Buffer
Crops a region defined by `cropx`, `cropY`, `cropWidth` and `cropHeight`.
Link copied to clipboard
open fun release()
Decreases ref count by one.
Link copied to clipboard
open fun retain()
Increases ref count by one.
Link copied to clipboard
Returns a memory-backed frame in I420 format.

Inherited functions

Link copied to clipboard
open fun getBufferType(): Int
Representation of the underlying buffer.