Agora Java API Reference for Android
Classes | Public Member Functions | List of all members
io.agora.rtc.gl.VideoFrame.TextureBuffer Interface Reference
Inheritance diagram for io.agora.rtc.gl.VideoFrame.TextureBuffer:
io.agora.rtc.gl.VideoFrame.Buffer io.agora.rtc.gl.TextureBufferImpl

Classes

enum  Type
 

Public Member Functions

Type getType ()
 
int getTextureId ()
 
Matrix getTransformMatrix ()
 
- Public Member Functions inherited from io.agora.rtc.gl.VideoFrame.Buffer
int getWidth ()
 
int getHeight ()
 
I420Buffer toI420 ()
 
void retain ()
 
void release ()
 
Buffer cropAndScale (int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight)
 

Detailed Description

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

Member Function Documentation

◆ getTransformMatrix()

Matrix io.agora.rtc.gl.VideoFrame.TextureBuffer.getTransformMatrix ( )

Retrieve the transform matrix associated with the frame. This transform matrix maps 2D homogeneous coordinates of the form (s, t, 1) with s and t in the inclusive range [0, 1] to the coordinate that should be used to sample that location from the buffer.

Implemented in io.agora.rtc.gl.TextureBufferImpl.