VideoFrame.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 public class VideoFrame extends Frame {
4  private int mWidth = -1;
5  private int mHeight = -1;
6  private int mStride = -1;
7  private int mBitsPerPixel = -1;
8 
9  public int getWidth(){
10  if(mWidth == -1)
11  mWidth = nGetWidth(mHandle);
12  return mWidth;
13  }
14 
15  public int getHeight(){
16  if(mHeight == -1)
17  mHeight = nGetHeight(mHandle);
18  return mHeight;
19  }
20 
21  public int getStride(){
22  if(mStride == -1)
23  mStride = nGetStride(mHandle);
24  return mStride;
25  }
26 
27  public int getBitsPerPixel(){
28  if(mBitsPerPixel == -1)
29  mBitsPerPixel = nGetBitsPerPixel(mHandle);
30  return mBitsPerPixel;
31  }
32 
34  return new VideoStreamProfile(nGetStreamProfile(mHandle));
35  }
36 
37  protected VideoFrame(long handle) {
38  super(handle);
39  mOwner = false;
40  }
41 
42  private static native int nGetWidth(long handle);
43  private static native int nGetHeight(long handle);
44  private static native int nGetStride(long handle);
45  private static native int nGetBitsPerPixel(long handle);
46 }
uvc_xu_option< int > super
Definition: l500-options.h:32
GLuint64 GLenum void * handle
Definition: glext.h:7785
static native int nGetStride(long handle)
static native int nGetBitsPerPixel(long handle)
static native int nGetWidth(long handle)
static native long nGetStreamProfile(long handle)
static native int nGetHeight(long handle)


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