2015-07-27 06:07:56 +08:00
|
|
|
#include <jni.h>
|
|
|
|
|
2015-10-07 23:59:43 +08:00
|
|
|
int initCL();
|
|
|
|
void closeCL();
|
|
|
|
void processFrame(int tex1, int tex2, int w, int h, int mode);
|
2015-07-27 06:07:56 +08:00
|
|
|
|
2015-10-07 23:59:43 +08:00
|
|
|
JNIEXPORT jint JNICALL Java_org_opencv_samples_tutorial4_NativePart_initCL(JNIEnv * env, jclass cls)
|
2015-07-27 06:07:56 +08:00
|
|
|
{
|
2015-10-07 23:59:43 +08:00
|
|
|
return initCL();
|
2015-07-27 06:07:56 +08:00
|
|
|
}
|
|
|
|
|
2015-10-07 23:59:43 +08:00
|
|
|
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativePart_closeCL(JNIEnv * env, jclass cls)
|
2015-07-27 06:07:56 +08:00
|
|
|
{
|
2015-10-07 23:59:43 +08:00
|
|
|
closeCL();
|
2015-07-27 06:07:56 +08:00
|
|
|
}
|
|
|
|
|
2015-10-07 23:59:43 +08:00
|
|
|
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativePart_processFrame(JNIEnv * env, jclass cls, jint tex1, jint tex2, jint w, jint h, jint mode)
|
2015-07-27 06:07:56 +08:00
|
|
|
{
|
2015-10-07 23:59:43 +08:00
|
|
|
processFrame(tex1, tex2, w, h, mode);
|
2015-07-31 08:39:26 +08:00
|
|
|
}
|