RetroArch
Public Member Functions | Private Attributes | List of all members
com.retroarch.browser.retroactivity.RetroActivityCamera Class Reference
Inheritance diagram for com.retroarch.browser.retroactivity.RetroActivityCamera:
[legend]
Collaboration diagram for com.retroarch.browser.retroactivity.RetroActivityCamera:
[legend]

Public Member Functions

void onCameraStart ()
 
void onCameraStop ()
 
void onCameraFree ()
 
void onCameraInit ()
 
boolean onCameraPoll ()
 
void onCameraTextureInit (int gl_texid)
 
void onCameraSetTexture (int gl_texid) throws IOException
 
void onCreate (Bundle savedInstanceState)
 
void onPause ()
 
void onResume ()
 
void onDestroy ()
 
void onStop ()
 
- Public Member Functions inherited from com.retroarch.browser.retroactivity.RetroActivityCommon
void onRetroArchExit ()
 
void setSustainedPerformanceMode (boolean on)
 
boolean isSustainedPerformanceModeSupported ()
 
int getBatteryLevel ()
 
int getPowerstate ()
 
boolean isAndroidTV ()
 
- Public Member Functions inherited from com.retroarch.browser.retroactivity.RetroActivityLocation
void onConnected (Bundle dataBundle)
 
void onDisconnected ()
 
void onConnectionFailed (ConnectionResult connectionResult)
 
void onLocationSetInterval (int update_interval_in_ms, int distance_interval)
 
void onLocationInit ()
 
void onLocationStart ()
 
void onLocationFree ()
 
void onLocationStop ()
 
double onLocationGetLatitude ()
 
double onLocationGetLongitude ()
 
double onLocationGetHorizontalAccuracy ()
 
boolean onLocationHasChanged ()
 
void onLocationChanged (Location location)
 
void onPause ()
 
void onResume ()
 
void onStop ()
 

Private Attributes

Camera mCamera = null
 
long lastTimestamp = 0
 
SurfaceTexture texture
 
boolean updateSurface = true
 
boolean camera_service_running = false
 
final OnFrameAvailableListener onCameraFrameAvailableListener
 

Additional Inherited Members

- Public Attributes inherited from com.retroarch.browser.retroactivity.RetroActivityCommon
boolean sustainedPerformanceMode = true
 
- Static Public Attributes inherited from com.retroarch.browser.retroactivity.RetroActivityCommon
static int FRONTEND_POWERSTATE_NONE = 0
 
static int FRONTEND_POWERSTATE_NO_SOURCE = 1
 
static int FRONTEND_POWERSTATE_CHARGING = 2
 
static int FRONTEND_POWERSTATE_CHARGED = 3
 
static int FRONTEND_POWERSTATE_ON_POWER_SOURCE = 4
 
- Package Attributes inherited from com.retroarch.browser.retroactivity.RetroActivityLocation
LocationRequest mLocationRequest = null
 
boolean mUpdatesRequested = false
 
boolean locationChanged = false
 
boolean location_service_running = false
 

Detailed Description

Class which provides Camera functionality to RetroActivityFuture.

Member Function Documentation

◆ 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_texidThe texture ID representing the texture to set the camera to.
Exceptions
IOExceptionIf 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

Initializes the SurfaceTexture used by the Camera with a given OpenGL texure ID.

Parameters
gl_texidtexture ID to initialize the SurfaceTexture with.

◆ onCreate()

void com.retroarch.browser.retroactivity.RetroActivityCamera.onCreate ( Bundle  savedInstanceState)
inline
Here is the call graph for this function:

◆ onDestroy()

void com.retroarch.browser.retroactivity.RetroActivityCamera.onDestroy ( )
inline

◆ onPause()

void com.retroarch.browser.retroactivity.RetroActivityCamera.onPause ( )
inline
Here is the call graph for this function:

◆ onResume()

void com.retroarch.browser.retroactivity.RetroActivityCamera.onResume ( )
inline
Here is the call graph for this function:

◆ onStop()

void com.retroarch.browser.retroactivity.RetroActivityCamera.onStop ( )
inline

Member Data Documentation

◆ 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)
{
updateSurface = true;
}
}

◆ 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: