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
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
Link copied to clipboard
Returns a memory-backed frame in I420 format.