Inherits org.webrtc.RendererCommon.GlDrawer.
|
void | drawOes (int oesTextureId, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight) |
|
void | drawRgb (int textureId, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight) |
|
void | drawYuv (int[] yuvTextures, float[] texMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight) |
|
void | release () |
|
Helper class to draw an opaque quad on the target viewport location. Rotation, mirror, and cropping is specified using a 4x4 texture coordinate transform matrix. The frame input can either be an OES texture or YUV textures in I420 format. The GL state must be preserved between draw calls, this is intentional to maximize performance. The function release() must be called manually to free the resources held by this object.
◆ drawOes()
void org.webrtc.GlRectDrawer.drawOes |
( |
int |
oesTextureId, |
|
|
float [] |
texMatrix, |
|
|
int |
frameWidth, |
|
|
int |
frameHeight, |
|
|
int |
viewportX, |
|
|
int |
viewportY, |
|
|
int |
viewportWidth, |
|
|
int |
viewportHeight |
|
) |
| |
|
inline |
Draw an OES texture frame with specified texture transformation matrix. Required resources are allocated at the first call to this function.
◆ drawRgb()
void org.webrtc.GlRectDrawer.drawRgb |
( |
int |
textureId, |
|
|
float [] |
texMatrix, |
|
|
int |
frameWidth, |
|
|
int |
frameHeight, |
|
|
int |
viewportX, |
|
|
int |
viewportY, |
|
|
int |
viewportWidth, |
|
|
int |
viewportHeight |
|
) |
| |
|
inline |
Draw a RGB(A) texture frame with specified texture transformation matrix. Required resources are allocated at the first call to this function.
◆ drawYuv()
void org.webrtc.GlRectDrawer.drawYuv |
( |
int [] |
yuvTextures, |
|
|
float [] |
texMatrix, |
|
|
int |
frameWidth, |
|
|
int |
frameHeight, |
|
|
int |
viewportX, |
|
|
int |
viewportY, |
|
|
int |
viewportWidth, |
|
|
int |
viewportHeight |
|
) |
| |
|
inline |
Draw a YUV frame with specified texture transformation matrix. Required resources are allocated at the first call to this function.
◆ release()
void org.webrtc.GlRectDrawer.release |
( |
| ) |
|
|
inline |
Release all GLES resources. This needs to be done manually, otherwise the resources are leaked.
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/webrtc/sdk/android/api/org/webrtc/GlRectDrawer.java