GlDrawer

interface GlDrawer

Interface for rendering frames on an EGLSurface with specified viewport location. Rotation, mirror, and cropping is specified using a 4x4 texture coordinate transform matrix. The frame input can either be an OES texture, RGB texture, or YUV textures in I420 format. The function release() must be called manually to free the resources held by this object.

Functions

Link copied to clipboard
abstract fun drawOes(oesTextureId: Int, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Functions for drawing frames with different sources.
Link copied to clipboard
abstract fun drawRgb(textureId: Int, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Link copied to clipboard
abstract fun drawYuv(yuvTextures: Array<Int>, texMatrix: Array<Float>, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Link copied to clipboard
abstract fun release()
Release all GL resources.