Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/samples/android/tutorial-4-opencl/jni/jni.c
16348 views
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
7
JNIEXPORT jint JNICALL Java_org_opencv_samples_tutorial4_NativePart_initCL(JNIEnv * env, jclass cls)
8
{
9
return initCL();
10
}
11
12
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativePart_closeCL(JNIEnv * env, jclass cls)
13
{
14
closeCL();
15
}
16
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
22