webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | List of all members
org.webrtc.GlRectDrawer Class Reference

Inherits org.webrtc.RendererCommon.GlDrawer.

Public Member Functions

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 ()
 

Detailed Description

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.

Member Function Documentation

◆ 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: