Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
wrappers
android
examples
native_example
app
src
main
cpp
native-lib.cpp
Go to the documentation of this file.
1
#include <jni.h>
2
#include "
librealsense2/rs.hpp
"
3
4
extern
"C"
JNIEXPORT jstring JNICALL
5
Java_com_example_realsense_1native_1example_MainActivity_nGetLibrealsenseVersionFromJNI
(JNIEnv *env, jclass
type
) {
6
return
(*env).NewStringUTF(
RS2_API_VERSION_STR
);
7
}
8
9
extern
"C"
JNIEXPORT jint JNICALL
10
Java_com_example_realsense_1native_1example_MainActivity_nGetCamerasCountFromJNI
(JNIEnv *env, jclass
type
) {
11
rs2::context
ctx
;
12
return
ctx.
query_devices
().
size
();;
13
}
rs2::context::query_devices
device_list query_devices() const
Definition:
rs_context.hpp:112
rs2::device_list::size
uint32_t size() const
Definition:
rs_device.hpp:711
rs.hpp
test-got-playback-frames.ctx
ctx
Definition:
test-got-playback-frames.py:165
rs2::context
Definition:
rs_context.hpp:96
Java_com_example_realsense_1native_1example_MainActivity_nGetCamerasCountFromJNI
JNIEXPORT jint JNICALL Java_com_example_realsense_1native_1example_MainActivity_nGetCamerasCountFromJNI(JNIEnv *env, jclass type)
Definition:
native-lib.cpp:10
Java_com_example_realsense_1native_1example_MainActivity_nGetLibrealsenseVersionFromJNI
JNIEXPORT jstring JNICALL Java_com_example_realsense_1native_1example_MainActivity_nGetLibrealsenseVersionFromJNI(JNIEnv *env, jclass type)
Definition:
native-lib.cpp:5
type
GLenum type
Definition:
glad/glad/glad.h:136
RS2_API_VERSION_STR
#define RS2_API_VERSION_STR
Definition:
rs.h:43
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:22