EglRenderer

EglRenderer is a helper interface to draw VideoFrame objects to a provided OpenGLES textures with additional display relation options.

It is currently used by SurfaceRenderView and TextureRenderView

Inheritors

Properties

Link copied to clipboard
abstract var aspectRatio: Float

Aspect ratio of displayed surface, used internally to set viewport and scaling

Link copied to clipboard
abstract var mirror: Boolean

Desired mirror across vertical axis (e.g. for self video)

Functions

Link copied to clipboard
abstract fun createEglSurface(inputSurface: Any)

Initialize internal EGL target rendering surface from Surface or SurfaceTexture

Link copied to clipboard
abstract fun init(eglCoreFactory: EglCoreFactory)

Initialize with factory to create EglCore objects to hold/share EGL state

Link copied to clipboard
abstract fun onVideoFrameReceived(frame: VideoFrame)

Receive a video frame from some upstream source. The VideoSink may render, store, process, and forward the frame, among other applications.

Link copied to clipboard
abstract fun release()

Deallocate any state or resources held by this object. Not calling this function will leak resources.

Link copied to clipboard
abstract fun releaseEglSurface()

Release internal EGL target rendering surface. Not calling this function will leak resources.