public class

VideoRendererGui

extends Object
java.lang.Object
   ↳ sg.com.temasys.skylink.sdk.rendering.VideoRendererGui

Class Overview

Efficiently renders YUV frames using the GPU for CSC. Clients will want first to call setView() to pass GLSurfaceView and then for each video stream either create instance of VideoRenderer using createGui() call or VideoRenderer.Callbacks interface using create() call. Only one instance of the class can be created.

Summary

Public Constructors
VideoRendererGui(GLSurfaceView surface)
Public Methods
VideoRendererGui.YuvImageRenderer create(int x, int y, int width, int height)
Creates VideoRenderer.Callbacks with top left corner at (x, y) and resolution (width, height).
VideoRenderer createGui(int x, int y, int width, int height)
Creates VideoRenderer with top left corner at (x, y) and resolution (width, height).
VideoRendererGuiListener getListener()
void onDrawFrame(GL10 unused)
void onSurfaceChanged(GL10 unused, int width, int height)
void onSurfaceCreated(GL10 unused, EGLConfig config)
void setListener(VideoRendererGuiListener listener)
static void setView(GLSurfaceView surface)
Passes GLSurfaceView to video renderer.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public VideoRendererGui (GLSurfaceView surface)

Public Methods

public VideoRendererGui.YuvImageRenderer create (int x, int y, int width, int height)

Creates VideoRenderer.Callbacks with top left corner at (x, y) and resolution (width, height). All parameters are in percentage of screen resolution.

public VideoRenderer createGui (int x, int y, int width, int height)

Creates VideoRenderer with top left corner at (x, y) and resolution (width, height). All parameters are in percentage of screen resolution.

Throws
Exception

public VideoRendererGuiListener getListener ()

public void onDrawFrame (GL10 unused)

public void onSurfaceChanged (GL10 unused, int width, int height)

public void onSurfaceCreated (GL10 unused, EGLConfig config)

public void setListener (VideoRendererGuiListener listener)

public static void setView (GLSurfaceView surface)

Passes GLSurfaceView to video renderer.