public class CameraSurfaceRenderer
extends java.lang.Object
implements android.opengl.GLSurfaceView.Renderer
| Constructor and Description |
|---|
CameraSurfaceRenderer(BroadcastActivity.CameraHandler cameraHandler,
TextureMovieEncoder movieEncoder,
Muxer muxer)
Constructs CameraSurfaceRenderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeRecordingState(boolean isRecording)
Notifies the renderer that we want to stop or start recording.
|
void |
notifyPausing()
Notifies the renderer thread that the activity is pausing.
|
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 unused) |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 unused,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 unused,
javax.microedition.khronos.egl.EGLConfig config) |
void |
setCameraPreviewSize(int width,
int height)
Records the size of the incoming camera preview frames.
|
public CameraSurfaceRenderer(BroadcastActivity.CameraHandler cameraHandler, TextureMovieEncoder movieEncoder, Muxer muxer)
cameraHandler - Handler for communicating with UI threadmovieEncoder - video encoder objectmuxer - output file for encoded video; forwarded to movieEncoderpublic void notifyPausing()
public void changeRecordingState(boolean isRecording)
public void setCameraPreviewSize(int width,
int height)
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 unused,
javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated in interface android.opengl.GLSurfaceView.Rendererpublic void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 unused,
int width,
int height)
onSurfaceChanged in interface android.opengl.GLSurfaceView.Rendererpublic void onDrawFrame(javax.microedition.khronos.opengles.GL10 unused)
onDrawFrame in interface android.opengl.GLSurfaceView.Renderer