Example #1
0
JNIEXPORT jlong JNICALL
Java_com_intel_realsense_librealsense_FrameQueue_nCreate(JNIEnv *env, jclass type, jint capacity) {
    rs2_error *e = NULL;
    rs2_frame_queue *rv = rs2_create_frame_queue(capacity, &e);
    handle_error(env, e);
    return (jlong) rv;
}
Example #2
0
JNIEXPORT jlong JNICALL Java_org_librealsense_Native_rs2CreateFrameQueue
  (JNIEnv *env, jclass, jint capacity) {
    rs2_error *error = NULL;
    rs2_frame_queue* queue = rs2_create_frame_queue(capacity, &error);
    checkErrors(env, error);

    return (jlong)queue;
}