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.
Functions
Link copied to clipboard
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
open fun prepareBufferForViewportSize(buffer: VideoFrame.Buffer, width: Int, height: Int): VideoFrame.Buffer