TextureBuffer

Interface for buffers that are stored as a single texture, either in OES or RGB format.

Inheritors

Types

Link copied to clipboard
enum Type

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 getTextureId(): Int
Link copied to clipboard
abstract fun getTransformMatrix(): Matrix
Retrieve the transform matrix associated with the frame.
Link copied to clipboard
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.