VideoStreamProfile.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 public class VideoStreamProfile extends StreamProfile {
4  ResolutionParams mResolutionParams;
6 
7  private class ResolutionParams {
8  public int width;
9  public int height;
10  }
11 
13  super(handle);
14  mOwner = false;
15  mResolutionParams = new ResolutionParams();
16  nGetResolution(mHandle, mResolutionParams);
17  mIntrinsic = null;
18  }
19 
20  public Intrinsic getIntrinsic() throws Exception {
21  if(mIntrinsic == null){
22  mIntrinsic = new Intrinsic();
23  nGetIntrinsic(mHandle, mIntrinsic);
24  mIntrinsic.SetModel();
25  }
26  return mIntrinsic;
27  }
28 
29  public int getWidth() {
30  return mResolutionParams.width;
31  }
32 
33  public int getHeight() {
34  return mResolutionParams.height;
35  }
36 
37  private static native void nGetResolution(long handle, ResolutionParams params);
38  private static native void nGetIntrinsic(long handle, Intrinsic intrinsic);
39 }
uvc_xu_option< int > super
Definition: l500-options.h:32
GLuint64 GLenum void * handle
Definition: glext.h:7785
static native void nGetIntrinsic(long handle, Intrinsic intrinsic)
GLenum const GLfloat * params
static native void nGetResolution(long handle, ResolutionParams params)


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