TextureBufferImpl

Android texture buffer that glues together the necessary information together with a generic release callback. ToI420() is implemented by providing a Handler and a YuvConverter.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, type: VideoFrame.TextureBuffer.Type, id: Int, transformMatrix: Matrix, toI420Handler: Handler, yuvConverter: YuvConverter, @Nullable releaseCallback: Runnable)

Properties

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

Functions

Link copied to clipboard
open fun applyTransformMatrix(transformMatrix: Matrix, newWidth: Int, newHeight: Int): TextureBufferImpl
Create a new TextureBufferImpl with an applied transform matrix and a new size.
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 getTextureId(): Int
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.