Package tvi.webrtc

Class VideoFrameDrawer

  • public class VideoFrameDrawer
    extends java.lang.Object
    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.
    • Constructor Detail

      • VideoFrameDrawer

        public VideoFrameDrawer()
    • Method Detail

      • drawTexture

        public static void drawTexture​(RendererCommon.GlDrawer drawer,
                                       VideoFrame.TextureBuffer buffer,
                                       int frameWidth,
                                       int frameHeight,
                                       int viewportX,
                                       int viewportY,
                                       int viewportWidth,
                                       int viewportHeight)
        Draws a VideoFrame.TextureBuffer. Calls either drawer.drawOes or drawer.drawRgb depending on the type of the buffer. You can supply an additional render matrix. This is used multiplied together with the transformation matrix of the frame. (M = renderMatrix * transformationMatrix)
      • drawFrame

        public void drawFrame​(VideoFrame frame,
                              RendererCommon.GlDrawer drawer,
                              int viewportX,
                              int viewportY,
                              int viewportWidth,
                              int viewportHeight)
      • release

        public void release()