From d51dad3a9cd20f6ef7cba6a2ed88ac4d2ea2191b Mon Sep 17 00:00:00 2001 From: jaaron-kot Date: Wed, 15 Jan 2025 13:36:14 +0800 Subject: [PATCH] fix build error --- src/android/jni/jni_gpupixel.cc | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/android/jni/jni_gpupixel.cc b/src/android/jni/jni_gpupixel.cc index 79f26aef..04f9b011 100755 --- a/src/android/jni/jni_gpupixel.cc +++ b/src/android/jni/jni_gpupixel.cc @@ -4,7 +4,6 @@ #include #include #include -#include #include "gpupixel_context.h" #include "jni_helpers.h" #include "libyuv.h" @@ -367,21 +366,7 @@ extern "C" void Java_com_pixpark_gpupixel_GPUPixel_nativeSetLandmarkCallback ( jclass obj, jobject source, jlong classId) { - - jobject globalSourceRef = env->NewGlobalRef(source); - ((SourceCamera*)classId)->RegLandmarkCallback([=](std::vector landmarks) { - jclass cls = env->GetObjectClass(globalSourceRef); - jmethodID methodID = env->GetMethodID(cls, "onFaceLandmark", "([F)V"); - - jfloatArray arr = env->NewFloatArray(landmarks.size()); - env->SetFloatArrayRegion( arr, 0, landmarks.size(), landmarks.data()); - - env->CallVoidMethod(globalSourceRef, methodID, arr); - - env->DeleteLocalRef(arr); - - }); - + //todo }; extern "C"