1 #include <jni.h>
2 
3 int initCL();
4 void closeCL();
5 void processFrame(int tex1, int tex2, int w, int h, int mode);
6 
Java_org_opencv_samples_tutorial4_NativePart_initCL(JNIEnv * env,jclass cls)7 JNIEXPORT jint JNICALL Java_org_opencv_samples_tutorial4_NativePart_initCL(JNIEnv * env, jclass cls)
8 {
9     return initCL();
10 }
11 
Java_org_opencv_samples_tutorial4_NativePart_closeCL(JNIEnv * env,jclass cls)12 JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativePart_closeCL(JNIEnv * env, jclass cls)
13 {
14     closeCL();
15 }
16 
Java_org_opencv_samples_tutorial4_NativePart_processFrame(JNIEnv * env,jclass cls,jint tex1,jint tex2,jint w,jint h,jint mode)17 JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativePart_processFrame(JNIEnv * env, jclass cls, jint tex1, jint tex2, jint w, jint h, jint mode)
18 {
19     processFrame(tex1, tex2, w, h, mode);
20 }
21