com.lti.civil.impl.jni.NativeCaptureSystemFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webcam-capture-driver-lti-civil Show documentation
Show all versions of webcam-capture-driver-lti-civil Show documentation
LTI-CIVIL webcam driver for Webcam Capture project. It allows Webcam Capture to fetch images using LTI-CIVIL library.
package com.lti.civil.impl.jni;
import com.lti.civil.CaptureException;
import com.lti.civil.CaptureSystem;
import com.lti.civil.CaptureSystemFactory;
/**
* Original class tries to load native library, but we have it already loaded,
* so here I just replaced original by the updated one. Please note that it's
* not very good w/a, but I didn't see any other choice.
*
* @author Bartosz Firyn (SarXos)
*/
public class NativeCaptureSystemFactory implements CaptureSystemFactory {
@Override
public CaptureSystem createCaptureSystem() throws CaptureException {
return newCaptureSystemObj();
}
private static native CaptureSystem newCaptureSystemObj();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy