Package org.opencv.android
Class CameraGLRendererBase
java.lang.Object
org.opencv.android.CameraGLRendererBase
- All Implemented Interfaces:
android.graphics.SurfaceTexture.OnFrameAvailableListener,android.opengl.GLSurfaceView.Renderer
- Direct Known Subclasses:
Camera2Renderer,CameraRenderer
public abstract class CameraGLRendererBase
extends Object
implements android.opengl.GLSurfaceView.Renderer, android.graphics.SurfaceTexture.OnFrameAvailableListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidonDrawFrame(javax.microedition.khronos.opengles.GL10 gl) voidonFrameAvailable(android.graphics.SurfaceTexture surfaceTexture) voidonPause()voidonResume()voidonSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int surfaceWidth, int surfaceHeight) voidonSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) voidsetCameraIndex(int cameraIndex) voidsetMaxCameraPreviewSize(int maxWidth, int maxHeight)
-
Constructor Details
-
CameraGLRendererBase
-
-
Method Details
-
onFrameAvailable
public void onFrameAvailable(android.graphics.SurfaceTexture surfaceTexture) - Specified by:
onFrameAvailablein interfaceandroid.graphics.SurfaceTexture.OnFrameAvailableListener
-
onDrawFrame
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) - Specified by:
onDrawFramein interfaceandroid.opengl.GLSurfaceView.Renderer
-
onSurfaceChanged
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int surfaceWidth, int surfaceHeight) - Specified by:
onSurfaceChangedin interfaceandroid.opengl.GLSurfaceView.Renderer
-
onSurfaceCreated
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config) - Specified by:
onSurfaceCreatedin interfaceandroid.opengl.GLSurfaceView.Renderer
-
enableView
public void enableView() -
disableView
public void disableView() -
setCameraIndex
public void setCameraIndex(int cameraIndex) -
setMaxCameraPreviewSize
public void setMaxCameraPreviewSize(int maxWidth, int maxHeight) -
onResume
public void onResume() -
onPause
public void onPause()
-