Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.intel.realsense.camera.Streamer Class Reference

Classes

interface  Listener
 

Public Member Functions

synchronized void start () throws Exception
 
synchronized void stop ()
 
 Streamer (Context context, boolean loadConfig, Listener listener)
 

Private Member Functions

void configStream (Config config)
 
int getFirstFrameTimeout ()
 

Private Attributes

final Context mContext
 
final Handler mHandler = new Handler()
 
boolean mIsStreaming = false
 
final Listener mListener
 
final boolean mLoadConfig
 
Pipeline mPipeline
 
Runnable mStreaming
 

Static Private Attributes

static final int DEFAULT_TIMEOUT = 3000
 
static final int L500_TIMEOUT = 15000
 
static final String TAG = "librs camera streamer"
 

Detailed Description

Definition at line 27 of file Streamer.java.

Constructor & Destructor Documentation

com.intel.realsense.camera.Streamer.Streamer ( Context  context,
boolean  loadConfig,
Listener  listener 
)
inline

Definition at line 46 of file Streamer.java.

Member Function Documentation

void com.intel.realsense.camera.Streamer.configStream ( Config  config)
inlineprivate

Definition at line 82 of file Streamer.java.

int com.intel.realsense.camera.Streamer.getFirstFrameTimeout ( )
inlineprivate

Definition at line 67 of file Streamer.java.

synchronized void com.intel.realsense.camera.Streamer.start ( ) throws Exception
inline

Definition at line 134 of file Streamer.java.

synchronized void com.intel.realsense.camera.Streamer.stop ( )
inline

Definition at line 153 of file Streamer.java.

Member Data Documentation

final int com.intel.realsense.camera.Streamer.DEFAULT_TIMEOUT = 3000
staticprivate

Definition at line 29 of file Streamer.java.

final int com.intel.realsense.camera.Streamer.L500_TIMEOUT = 15000
staticprivate

Definition at line 30 of file Streamer.java.

final Context com.intel.realsense.camera.Streamer.mContext
private

Definition at line 37 of file Streamer.java.

final Handler com.intel.realsense.camera.Streamer.mHandler = new Handler()
private

Definition at line 41 of file Streamer.java.

boolean com.intel.realsense.camera.Streamer.mIsStreaming = false
private

Definition at line 40 of file Streamer.java.

final Listener com.intel.realsense.camera.Streamer.mListener
private

Definition at line 42 of file Streamer.java.

final boolean com.intel.realsense.camera.Streamer.mLoadConfig
private

Definition at line 38 of file Streamer.java.

Pipeline com.intel.realsense.camera.Streamer.mPipeline
private

Definition at line 44 of file Streamer.java.

Runnable com.intel.realsense.camera.Streamer.mStreaming
private
Initial value:
= new Runnable() {
@Override
public void run() {
try {
try(FrameSet frames = mPipeline.waitForFrames()) {
mListener.onFrameset(frames);
}
}
catch (Exception e) {
Log.e(TAG, "streaming, error: " + e.getMessage());
}
}
}

Definition at line 52 of file Streamer.java.

final String com.intel.realsense.camera.Streamer.TAG = "librs camera streamer"
staticprivate

Definition at line 28 of file Streamer.java.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36