Agora Java API Reference for Android
|
Classes | |
enum | ContextType |
enum | Type |
Public Member Functions | |
Type | getType () |
int | getTextureId () |
Matrix | getTransformMatrix () |
EglBase.Context | getEglBaseContext () |
long | getNativeEglContext () |
int | getEglContextType () |
float[] | getTransformMatrixArray () |
![]() | |
int | getWidth () |
int | getHeight () |
I420Buffer | toI420 () |
void | retain () |
void | release () |
Buffer | cropAndScale (int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight) |
Buffer | mirror (int frameRotation) |
Buffer | rotate (int frameRotation) |
Buffer | transform (int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight, int frameRotation) |
Interface for buffers that are stored as a single texture, either in OES or RGB format.
int io.agora.base.VideoFrame.TextureBuffer.getTextureId | ( | ) |
Implemented in io.agora.base.TextureBuffer, and io.agora.mediaplayer.gl.TextureBufferImpl.
Matrix io.agora.base.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.base.TextureBuffer, and io.agora.mediaplayer.gl.TextureBufferImpl.
EglBase.Context io.agora.base.VideoFrame.TextureBuffer.getEglBaseContext | ( | ) |
Retrieve the wrapped eglcontext EglBase.Context
Implemented in io.agora.base.TextureBuffer, and io.agora.mediaplayer.gl.TextureBufferImpl.