1 package com.intel.realsense.librealsense;
3 public class Frame extends LrsClass implements Cloneable{
13 public <T extends Frame>
T as(
Extension extension) {
15 case VIDEO_FRAME:
return (
T)
new VideoFrame(mHandle);
16 case DEPTH_FRAME:
return (
T)
new DepthFrame(mHandle);
18 case POINTS:
return (
T)
new Points(mHandle);
20 throw new RuntimeException(
"this profile is not extendable to " + extension.name());
75 private static native
void nAddRef(
long handle);
76 private static native
void nRelease(
long handle);
80 private static native
int nGetNumber(
long handle);
83 private static native
long nGetMetadata(
long handle,
int metadata_type);
static native double nGetTimestamp(long handle)
GLuint64 GLenum void * handle
static native void nRelease(long handle)
long getMetadata(FrameMetadata type)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
static native long nGetMetadata(long handle, int metadata_type)
static native int nGetDataSize(long handle)
static native boolean nSupportsMetadata(long handle, int metadata_type)
static native int nGetNumber(long handle)
TimestampDomain getTimestampDomain()
void getData(byte[] data)
static native boolean nIsFrameExtendableTo(long handle, int extension)
Frame process(Frame original)
static native long nGetStreamProfile(long handle)
static native void nGetData(long handle, byte[] data)
boolean is(Extension extension)
void addFrame(Frame frame)
boolean supportsMetadata(FrameMetadata type)
Frame applyFilter(FilterInterface filter)
StreamProfile getProfile()
static native int nGetTimestampDomain(long handle)
Frame releaseWith(FrameReleaser frameReleaser)
static native void nAddRef(long handle)