VideoFrameDrawer

open class VideoFrameDrawer

Helper class to draw VideoFrames. Calls either drawer.drawOes, drawer.drawRgb, or drawer.drawYuv depending on the type of the buffer. The frame will be rendered with rotation taken into account. You can supply an additional render matrix for custom transformations.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val TAG: String = "VideoFrameDrawer"

Functions

Link copied to clipboard
open fun drawFrame(frame: VideoFrame, drawer: RendererCommon.GlDrawer)
open fun drawFrame(frame: VideoFrame, drawer: RendererCommon.GlDrawer, additionalRenderMatrix: Matrix)
open fun drawFrame(frame: VideoFrame, drawer: RendererCommon.GlDrawer, @Nullable additionalRenderMatrix: Matrix, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Link copied to clipboard
open fun drawTexture(drawer: RendererCommon.GlDrawer, buffer: VideoFrame.TextureBuffer, renderMatrix: Matrix, frameWidth: Int, frameHeight: Int, viewportX: Int, viewportY: Int, viewportWidth: Int, viewportHeight: Int)
Draws a VideoFrame.TextureBuffer.
Link copied to clipboard
Link copied to clipboard
open fun release()