extern "C" JNIEXPORT jstring JNICALL Java_com_almalence_plugins_processing_groupshot_AlmaShotSeamless_Initialize ( JNIEnv* env, jobject thiz ) { LOGD("Initialize - start"); char status[1024]; int err=0; if (almashot_inited == 0) { err = AlmaShot_Initialize(0); if (err == ALMA_ALL_OK) almashot_inited = 1; } instance = NULL; sprintf (status, " init status: %d\n", err); LOGD("Initialize - end"); return env->NewStringUTF(status); }
extern "C" JNIEXPORT jstring JNICALL Java_com_almalence_plugins_processing_bestshot_AlmaShotBestShot_Initialize ( JNIEnv* env, jobject thiz ) { char status[1024]; int err=0; if (almashot_inited == 0) { err = AlmaShot_Initialize(0); if (err == 0) almashot_inited = 1; } sprintf (status, " err: %d\n", err); return env->NewStringUTF(status); }
extern "C" JNIEXPORT jstring JNICALL Java_com_zihuatanejo_finalcamera_plugins_processing_night_AlmaShotNight_Initialize ( JNIEnv* env, jobject thiz ) { char status[1024]; int err=0; long mem_used, mem_free; if (almashot_inited == 0) { err = AlmaShot_Initialize(0); if (err == 0) almashot_inited = 1; } sprintf (status, "init status: %d\n", err); return env->NewStringUTF(status); }
extern "C" JNIEXPORT jstring JNICALL Java_com_almalence_plugins_processing_objectremoval_AlmaCLRShot_Initialize ( JNIEnv* env, jobject thiz ) { char status[1024]; int err=0; if (almashot_inited == 0) { err = AlmaShot_Initialize(0); if (err == ALMA_ALL_OK) almashot_inited = 1; } instance = NULL; sprintf (status, " init status: %d\n", err); return env->NewStringUTF(status); }
extern "C" JNIEXPORT jstring JNICALL Java_com_almalence_plugins_processing_simple_AlmaShotDRO_Initialize ( JNIEnv* env, jobject thiz ) { char status[1024]; int err=0; long mem_used, mem_free; if (almashot_inited == 0) { err = AlmaShot_Initialize(0); if (err == 0) almashot_inited = 1; } mem_usage(&mem_used, &mem_free); sprintf (status, " memory: %ld(%ld) init status: %d\n", mem_free, mem_used, err); return env->NewStringUTF(status); }