Class which provides Camera functionality to RetroActivityFuture.
◆ onCameraFree()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraFree |
( |
| ) |
|
|
inline |
Releases the currently held Camera instance.
◆ onCameraInit()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraInit |
( |
| ) |
|
|
inline |
Initializes the camera for use.
◆ onCameraPoll()
boolean com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraPoll |
( |
| ) |
|
|
inline |
Polls the camera for updates to the SurfaceTexture.
- Returns
- true if polling was successful, false otherwise.
◆ onCameraSetTexture()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraSetTexture |
( |
int |
gl_texid | ) |
throws IOException |
|
inline |
Sets the Camera texture with the texture represented by the given OpenGL texture ID.
- Parameters
-
gl_texid | The texture ID representing the texture to set the camera to. |
- Exceptions
-
IOException | If setting the texture fails. |
◆ onCameraStart()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraStart |
( |
| ) |
|
|
inline |
Executed when the Camera is staring to capture.
◆ onCameraStop()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraStop |
( |
| ) |
|
|
inline |
Executed when the Camera is done capturing.
Note that this does not release the currently held Camera instance and must be freed by calling onCameraFree
◆ onCameraTextureInit()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraTextureInit |
( |
int |
gl_texid | ) |
|
|
inline |
◆ onCreate()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onCreate |
( |
Bundle |
savedInstanceState | ) |
|
|
inline |
◆ onDestroy()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onDestroy |
( |
| ) |
|
|
inline |
◆ onPause()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onPause |
( |
| ) |
|
|
inline |
◆ onResume()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onResume |
( |
| ) |
|
|
inline |
◆ onStop()
void com.retroarch.browser.retroactivity.RetroActivityCamera.onStop |
( |
| ) |
|
|
inline |
◆ camera_service_running
boolean com.retroarch.browser.retroactivity.RetroActivityCamera.camera_service_running = false |
|
private |
◆ lastTimestamp
long com.retroarch.browser.retroactivity.RetroActivityCamera.lastTimestamp = 0 |
|
private |
◆ mCamera
Camera com.retroarch.browser.retroactivity.RetroActivityCamera.mCamera = null |
|
private |
◆ onCameraFrameAvailableListener
final OnFrameAvailableListener com.retroarch.browser.retroactivity.RetroActivityCamera.onCameraFrameAvailableListener |
|
private |
Initial value:= new OnFrameAvailableListener()
{
@Override
public void onFrameAvailable(SurfaceTexture surfaceTexture)
{
}
}
◆ texture
SurfaceTexture com.retroarch.browser.retroactivity.RetroActivityCamera.texture |
|
private |
◆ updateSurface
boolean com.retroarch.browser.retroactivity.RetroActivityCamera.updateSurface = true |
|
private |
The documentation for this class was generated from the following file: