I420Buffer

Interface for I420 buffers.

Inheritors

Functions

Link copied to clipboard
open fun getBufferType(): Int
Representation of the underlying buffer.
Link copied to clipboard
abstract fun getDataU(): ByteBuffer
Returns a direct ByteBuffer containing U-plane data.
Link copied to clipboard
abstract fun getDataV(): ByteBuffer
Returns a direct ByteBuffer containing V-plane data.
Link copied to clipboard
abstract fun getDataY(): ByteBuffer
Returns a direct ByteBuffer containing Y-plane data.
Link copied to clipboard
abstract fun getStrideU(): Int
Link copied to clipboard
abstract fun getStrideV(): Int
Link copied to clipboard
abstract fun getStrideY(): Int

Inherited functions

Link copied to clipboard
abstract 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
abstract fun getHeight(): Int
Link copied to clipboard
abstract fun getWidth(): Int
Resolution of the buffer in pixels.
Link copied to clipboard
abstract fun release()
Decreases ref count by one.
Link copied to clipboard
abstract fun retain()
Increases ref count by one.
Link copied to clipboard
Returns a memory-backed frame in I420 format.