processing.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #include <jni.h>
5 #include "error.h"
6 
7 #include "../../../include/librealsense2/rs.h"
8 
9 extern "C" JNIEXPORT void JNICALL
11  jlong handle) {
12  rs2_delete_processing_block(reinterpret_cast<rs2_processing_block *>(handle));
13 }
14 
15 extern "C" JNIEXPORT void JNICALL
17  jlong handle, jlong frameHandle) {
18  rs2_error *e = NULL;
19  rs2_frame_add_ref(reinterpret_cast<rs2_frame *>(frameHandle), &e);
20  handle_error(env, e);
21  rs2_process_frame(reinterpret_cast<rs2_processing_block *>(handle),
22  reinterpret_cast<rs2_frame *>(frameHandle), &e);
23  handle_error(env, e);
24 }
25 
26 extern "C"
27 JNIEXPORT jlong JNICALL
28 Java_com_intel_realsense_librealsense_Align_nCreate(JNIEnv *env, jclass type, jlong queueHandle,
29  jint alignTo) {
30  rs2_error *e = NULL;
31  rs2_processing_block *rv = rs2_create_align(static_cast<rs2_stream>(alignTo), &e);
32  handle_error(env, e);
33  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
34  handle_error(env, e);
35  return reinterpret_cast<jlong>(rv);
36 }
37 
38 extern "C" JNIEXPORT jlong JNICALL
39 Java_com_intel_realsense_librealsense_Colorizer_nCreate(JNIEnv *env, jclass type, jlong queueHandle) {
40  rs2_error *e = NULL;
42  handle_error(env, e);
43  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
44  handle_error(env, e);
45  return reinterpret_cast<jlong>(rv);
46 }
47 
48 extern "C" JNIEXPORT jlong JNICALL
50  jlong queueHandle) {
51  rs2_error *e = NULL;
53  handle_error(env, e);
54  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
55  handle_error(env, e);
56  return reinterpret_cast<jlong>(rv);
57 }
58 
59 extern "C"
60 JNIEXPORT jlong JNICALL
62  jlong queueHandle,
63  jboolean transformToDisparity) {
64  rs2_error *e = NULL;
65  rs2_processing_block *rv = rs2_create_disparity_transform_block(transformToDisparity, &e);
66  handle_error(env, e);
67  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
68  handle_error(env, e);
69  return reinterpret_cast<jlong>(rv);
70 }
71 
72 extern "C"
73 JNIEXPORT jlong JNICALL
75  jlong queueHandle) {
76  rs2_error *e = NULL;
78  handle_error(env, e);
79  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
80  handle_error(env, e);
81  return reinterpret_cast<jlong>(rv);
82 }
83 
84 extern "C"
85 JNIEXPORT jlong JNICALL
87  jlong queueHandle) {
88  rs2_error *e = NULL;
90  handle_error(env, e);
91  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
92  handle_error(env, e);
93  return reinterpret_cast<jlong>(rv);
94 }
95 
96 extern "C"
97 JNIEXPORT jlong JNICALL
98 Java_com_intel_realsense_librealsense_SpatialFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle) {
99  rs2_error *e = NULL;
101  handle_error(env, e);
102  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
103  handle_error(env, e);
104  return reinterpret_cast<jlong>(rv);
105 }
106 
107 extern "C"
108 JNIEXPORT jlong JNICALL
110  jlong queueHandle) {
111  rs2_error *e = NULL;
113  handle_error(env, e);
114  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
115  handle_error(env, e);
116  return reinterpret_cast<jlong>(rv);
117 }
118 
119 extern "C"
120 JNIEXPORT jlong JNICALL
122  jlong queueHandle) {
123  rs2_error *e = NULL;
125  handle_error(env, e);
126  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
127  handle_error(env, e);
128  return reinterpret_cast<jlong>(rv);
129 }
130 
131 extern "C"
132 JNIEXPORT jlong JNICALL
134  jlong queueHandle) {
135  rs2_error *e = NULL;
137  handle_error(env, e);
138  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
139  handle_error(env, e);
140  return reinterpret_cast<jlong>(rv);
141 }
142 
143 extern "C"
144 JNIEXPORT jlong JNICALL
146  jlong queueHandle) {
147  rs2_error *e = NULL;
149  handle_error(env, e);
150  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
151  handle_error(env, e);
152  return reinterpret_cast<jlong>(rv);
153 }
154 
155 extern "C"
156 JNIEXPORT jlong JNICALL
158  jlong queueHandle) {
159  rs2_error *e = NULL;
161  handle_error(env, e);
162  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
163  handle_error(env, e);
164  return reinterpret_cast<jlong>(rv);
165 }
166 
167 extern "C"
168 JNIEXPORT jlong JNICALL
170  jlong queueHandle) {
171  rs2_error *e = NULL;
173  handle_error(env, e);
174  rs2_start_processing_queue(rv, reinterpret_cast<rs2_frame_queue *>(queueHandle), &e);
175  handle_error(env, e);
176  return reinterpret_cast<jlong>(rv);
177 }
178 
179 
rs2_processing_block * rs2_create_decimation_filter_block(rs2_error **error)
Definition: rs.cpp:2232
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_SequenceIdFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:169
rs2_processing_block * rs2_create_threshold(rs2_error **error)
Definition: rs.cpp:2199
rs2_processing_block * rs2_create_zero_order_invalidation_block(rs2_error **error)
Definition: rs.cpp:2280
GLuint64 GLenum void * handle
Definition: glext.h:7785
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_HoleFillingFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:74
rs2_processing_block * rs2_create_hole_filling_filter_block(rs2_error **error)
Definition: rs.cpp:2264
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_TemporalFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:109
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_Pointcloud_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:86
void handle_error(JNIEnv *env, rs2_error *error)
Definition: error.cpp:6
void rs2_process_frame(rs2_processing_block *block, rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:2097
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_ProcessingBlock_nDelete(JNIEnv *env, jclass type, jlong handle)
Definition: processing.cpp:10
e
Definition: rmse.py:177
rs2_processing_block * rs2_create_align(rs2_stream align_to, rs2_error **error)
Definition: rs.cpp:2211
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_DecimationFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:49
rs2_processing_block * rs2_create_pointcloud(rs2_error **error)
Definition: rs.cpp:2187
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_DisparityTransformFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle, jboolean transformToDisparity)
Definition: processing.cpp:61
JNIEXPORT void JNICALL Java_com_intel_realsense_librealsense_ProcessingBlock_nInvoke(JNIEnv *env, jclass type, jlong handle, jlong frameHandle)
Definition: processing.cpp:16
void rs2_delete_processing_block(rs2_processing_block *block)
Definition: rs.cpp:2106
rs2_processing_block * rs2_create_temporal_filter_block(rs2_error **error)
Definition: rs.cpp:2240
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_YuyDecoder_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:145
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_Colorizer_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:39
rs2_processing_block * rs2_create_disparity_transform_block(unsigned char transform_to_disparity, rs2_error **error)
Definition: rs.cpp:2256
rs2_processing_block * rs2_create_colorizer(rs2_error **error)
Definition: rs.cpp:2221
rs2_processing_block * rs2_create_sequence_id_filter(rs2_error **error)
Definition: rs.cpp:2304
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_SpatialFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:98
rs2_processing_block * rs2_create_yuy_decoder(rs2_error **error)
Definition: rs.cpp:2193
GLenum type
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_Align_nCreate(JNIEnv *env, jclass type, jlong queueHandle, jint alignTo)
Definition: processing.cpp:28
rs2_processing_block * rs2_create_spatial_filter_block(rs2_error **error)
Definition: rs.cpp:2248
void rs2_frame_add_ref(rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:1015
#define NULL
Definition: tinycthread.c:47
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_ThresholdFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:121
void rs2_start_processing_queue(rs2_processing_block *block, rs2_frame_queue *queue, rs2_error **error)
Definition: rs.cpp:2087
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_HdrMerge_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:157
JNIEXPORT jlong JNICALL Java_com_intel_realsense_librealsense_ZeroOrderInvalidationFilter_nCreate(JNIEnv *env, jclass type, jlong queueHandle)
Definition: processing.cpp:133
rs2_processing_block * rs2_create_hdr_merge_processing_block(rs2_error **error)
Definition: rs.cpp:2296


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:39