7 #include "../../../include/librealsense2/rs.h" 8 #include "../../../include/librealsense2/h/rs_config.h" 10 extern "C" JNIEXPORT jlong JNICALL
18 extern "C" JNIEXPORT
void JNICALL
23 extern "C" JNIEXPORT
void JNICALL
29 rs2_config_enable_stream(reinterpret_cast<rs2_config *>(handle), static_cast<rs2_stream>(type), index, width, height,
30 static_cast<rs2_format>(format), framerate, &e);
34 extern "C" JNIEXPORT
void JNICALL
38 const char *filePath = env->GetStringUTFChars(filePath_, 0);
44 env->ReleaseStringUTFChars(filePath_, filePath);
47 extern "C" JNIEXPORT
void JNICALL
51 const char *serial = env->GetStringUTFChars(serial_, 0);
57 env->ReleaseStringUTFChars(serial_, serial);
60 extern "C" JNIEXPORT
void JNICALL
62 jlong
handle, jstring filePath_) {
63 const char *filePath = env->GetStringUTFChars(filePath_, 0);
69 env->ReleaseStringUTFChars(filePath_, filePath);
72 extern "C" JNIEXPORT
void JNICALL
77 static_cast<rs2_stream>(streamType), &e);
81 extern "C" JNIEXPORT
void JNICALL
89 extern "C" JNIEXPORT
void JNICALL
98 JNIEXPORT jlong JNICALL
100 jlong pipelineHandle) {
103 reinterpret_cast<rs2_pipeline *>(pipelineHandle), &e);
105 return reinterpret_cast<jlong
>(rv);
109 JNIEXPORT jboolean JNICALL
111 jlong pipelineHandle) {
114 reinterpret_cast<rs2_pipeline *>(pipelineHandle), &e);
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nEnableDevice(JNIEnv *env, jclass type, jlong handle, jstring serial_)
void rs2_config_enable_stream(rs2_config *config, rs2_stream stream, int index, int width, int height, rs2_format format, int framerate, rs2_error **error)
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_Config_nCreate(JNIEnv *env, jclass type)
rs2_pipeline_profile * rs2_config_resolve(rs2_config *config, rs2_pipeline *pipe, rs2_error **error)
JNIEXPORT jboolean JNICALL Java_com_intel_realsense_librealsense_Config_nCanResolve(JNIEnv *env, jclass type, jlong handle, jlong pipelineHandle)
rs2_config * rs2_create_config(rs2_error **error)
void rs2_config_enable_record_to_file(rs2_config *config, const char *file, rs2_error **error)
void handle_error(JNIEnv *env, rs2_error *error)
void rs2_config_enable_all_stream(rs2_config *config, rs2_error **error)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nDelete(JNIEnv *env, jclass type, jlong handle)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nEnableRecordToFile(JNIEnv *env, jclass type, jlong handle, jstring filePath_)
void rs2_config_disable_all_streams(rs2_config *config, rs2_error **error)
void rs2_config_enable_device_from_file(rs2_config *config, const char *file, rs2_error **error)
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_Config_nResolve(JNIEnv *env, jclass type, jlong handle, jlong pipelineHandle)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nEnableAllStreams(JNIEnv *env, jclass type, jlong handle)
GLint GLsizei GLsizei height
int rs2_config_can_resolve(rs2_config *config, rs2_pipeline *pipe, rs2_error **error)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nDisableStream(JNIEnv *env, jclass type, jlong handle, jint streamType)
GLint GLint GLsizei GLint GLenum format
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nEnableDeviceFromFile(JNIEnv *env, jclass type, jlong handle, jstring filePath_)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nDisableAllStreams(JNIEnv *env, jclass type, jlong handle)
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_Config_nEnableStream(JNIEnv *env, jclass type_, jlong handle, jint type, jint index, jint width, jint height, jint format, jint framerate)
void rs2_delete_config(rs2_config *config)
void rs2_config_enable_device(rs2_config *config, const char *serial, rs2_error **error)
void rs2_config_disable_stream(rs2_config *config, rs2_stream stream, rs2_error **error)