drawFrame

abstract fun drawFrame(frame: VideoFrame, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int, additionalRenderMatrix: Matrix?)

Draw a VideoFrame to the current EGL surface using the provided viewport and matrix. additionalRenderMatrix will be applied on top of any matrices attached to the video frame buffer. The resulting draw will have the rotation and any internal transform matrices applied.

Parameters

frame

: VideoFrame - Video frame to draw

viewportX

: Int - X coordinate of target viewport

viewportY

: Int - Y coordinate of target viewport

viewportWidth

: Int - Width of target viewport

viewportHeight

: Int - Height of target viewport

additionalRenderMatrix

: Matrix? - Additional matrix to apply to frame