C# Class Appspotdemo.Mono.Droid.VideoStreamsView

A GLSurfaceView{,.Renderer} that efficiently renders YUV frames from local & remote VideoTracks using the GPU for CSC. Clients will want to call the constructor, setSize() and updateFrame() as appropriate, but none of the other public methods of this class are of interest to clients (only to system classes).
Inheritance: Android.Opengl.GLSurfaceView, GLSurfaceView.IRenderer
ファイルを表示 Open project: kenneththorman/appspotdemo-mono Class Usage Examples

Public Methods

Method Description
OnDrawFrame ( IGL10 unused ) : void
OnSurfaceChanged ( IGL10 unused, int width, int height ) : void
OnSurfaceCreated ( IGL10 unused, EGLConfig config ) : void
VideoStreamsView ( Android.Content.Context c, Android.Graphics.Point screenDimensions ) : System.Collections.Generic
queueFrame ( Endpoint stream, Org frame ) : void

Queue |frame| to be uploaded.

setSize ( Endpoint stream, int width, int height ) : void

Inform this View of the dimensions of frames coming from |stream|.

Protected Methods

Method Description
OnMeasure ( int unusedX, int unusedY ) : void

Private Methods

Method Description
abortUnless ( bool condition, string msg ) : void
addShaderTo ( int type, string source, int program ) : void
checkNoGLES2Error ( ) : void
directNativeFloatBuffer ( float array ) : FloatBuffer
drawRectangle ( int textures, FloatBuffer vertices ) : void
texImage2D ( VideoRenderer frame, int textures ) : void
updateFrames ( ) : void

Method Details

OnDrawFrame() public method

public OnDrawFrame ( IGL10 unused ) : void
unused IGL10
return void

OnMeasure() protected method

protected OnMeasure ( int unusedX, int unusedY ) : void
unusedX int
unusedY int
return void

OnSurfaceChanged() public method

public OnSurfaceChanged ( IGL10 unused, int width, int height ) : void
unused IGL10
width int
height int
return void

OnSurfaceCreated() public method

public OnSurfaceCreated ( IGL10 unused, EGLConfig config ) : void
unused IGL10
config EGLConfig
return void

VideoStreamsView() public method

public VideoStreamsView ( Android.Content.Context c, Android.Graphics.Point screenDimensions ) : System.Collections.Generic
c Android.Content.Context
screenDimensions Android.Graphics.Point
return System.Collections.Generic

queueFrame() public method

Queue |frame| to be uploaded.
public queueFrame ( Endpoint stream, Org frame ) : void
stream Endpoint
frame Org
return void

setSize() public method

Inform this View of the dimensions of frames coming from |stream|.
public setSize ( Endpoint stream, int width, int height ) : void
stream Endpoint
width int
height int
return void