Go to the documentation of this file.
6 #include "../../../include/librealsense2/rs.h"
7 #include "../../../include/librealsense2/rs_advanced_mode.h"
10 extern "C" JNIEXPORT
void JNICALL
12 jlong
handle, jboolean enable) {
18 extern "C" JNIEXPORT jboolean JNICALL
28 extern "C" JNIEXPORT
void JNICALL
30 jlong
handle, jbyteArray data_) {
31 jbyte *
data = env->GetByteArrayElements(data_,
NULL);
32 jsize
length = env->GetArrayLength(data_);
36 env->ReleaseByteArrayElements(data_,
data, 0);
39 extern "C" JNIEXPORT jbyteArray JNICALL
43 std::shared_ptr<rs2_raw_data_buffer> raw_data_buffer(
47 jbyteArray rv = env->NewByteArray(raw_data_buffer->buffer.size());
48 env->SetByteArrayRegion(rv, 0, raw_data_buffer->buffer.size(),
49 reinterpret_cast<const jbyte *
>(raw_data_buffer->buffer.data()));
GLenum GLuint GLenum GLsizei length
JNIEXPORT jboolean JNICALL Java_com_intel_realsense_librealsense_Device_nIsInAdvancedMode(JNIEnv *env, jclass type, jlong handle)
rs2_raw_data_buffer * rs2_serialize_json(rs2_device *dev, rs2_error **error)
void handle_error(JNIEnv *env, rs2_error *error)
JNIEXPORT jbyteArray JNICALL Java_com_intel_realsense_librealsense_Device_nSerializePresetToJson(JNIEnv *env, jclass type, jlong handle)
void rs2_toggle_advanced_mode(rs2_device *dev, int enable, rs2_error **error)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Device_nToggleAdvancedMode(JNIEnv *env, jclass type, jlong handle, jboolean enable)
void rs2_load_json(rs2_device *dev, const void *json_content, unsigned content_size, rs2_error **error)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Device_nLoadPresetFromJson(JNIEnv *env, jclass type, jlong handle, jbyteArray data_)
void rs2_is_enabled(rs2_device *dev, int *enabled, rs2_error **error)
librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:00