jni.c 563 B

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