Pipeline.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 public class Pipeline extends LrsClass{
4  public Pipeline(){
5  try(RsContext ctx = new RsContext()) {
6  mHandle = nCreate(ctx.getHandle());
7  }
8  }
9 
11  mHandle = nCreate(ctx.getHandle());
12  }
13 
14  public PipelineProfile start() throws Exception{
15  return new PipelineProfile(nStart(mHandle));
16  }
17 
18  public PipelineProfile start(Config config) throws Exception {
19  long h = nStartWithConfig(mHandle, config.getHandle());
20  return new PipelineProfile(h);
21  }
22  public void stop() {
23  nStop(mHandle);
24  }
25 
26  public FrameSet waitForFrames() throws Exception {
27  return waitForFrames(5000); //defining default timeout
28  }
29 
30  public FrameSet waitForFrames (int timeoutMilliseconds) throws Exception{
31  long frameHandle = nWaitForFrames(mHandle, timeoutMilliseconds);
32  return new FrameSet(frameHandle);
33  }
34 
35  @Override
36  public void close(){
37  nDelete(mHandle);
38  }
39 
40  private static native long nCreate(long context);
41  private static native void nDelete(long handle);
42  private static native long nStart(long handle);
43  private static native long nStartWithConfig(long handle, long configHandle);
44  private static native void nStop(long handle);
45  private static native long nWaitForFrames(long handle, int timeout);
46 }
FrameSet waitForFrames(int timeoutMilliseconds)
Definition: Pipeline.java:30
GLuint64 GLenum void * handle
Definition: glext.h:7785
static native long nStart(long handle)
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:1960
static native void nDelete(long handle)
PipelineProfile start(Config config)
Definition: Pipeline.java:18
static native long nStartWithConfig(long handle, long configHandle)
GLbitfield GLuint64 timeout
static native long nWaitForFrames(long handle, int timeout)
static native void nStop(long handle)
static native long nCreate(long context)


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