MotionFrame.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 import android.renderscript.Float3;
4 
5 import java.nio.ByteBuffer;
6 import java.nio.ByteOrder;
7 import java.nio.FloatBuffer;
8 
9 public class MotionFrame extends Frame {
10  protected MotionFrame(long handle) {
11  super(handle);
12  mOwner = false;
13  }
14 
15  public Float3 getMotionData(){
16  ByteBuffer buffer = ByteBuffer.allocate(32);
17  buffer.order(ByteOrder.LITTLE_ENDIAN);
18  getData(buffer.array());
19  FloatBuffer fb = buffer.asFloatBuffer();
20  return new Float3(fb.get(0), fb.get(1), fb.get(2));
21  }
22 
24  return new MotionStreamProfile(nGetStreamProfile(mHandle));
25  }
26 }
uvc_xu_option< int > super
Definition: l500-options.h:32
GLuint64 GLenum void * handle
Definition: glext.h:7785
GLenum GLfloat * buffer
static native long nGetStreamProfile(long handle)


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