All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lti.civil.DefaultCaptureSystemFactorySingleton Maven / Gradle / Ivy

/*
 * Created on Jun 1, 2005
 */
package com.lti.civil;

import com.lti.civil.impl.jni.NativeCaptureSystemFactory;
import com.lti.civil.impl.qtjava.QTCaptureSystemFactory;
import com.lti.utils.OSUtils;

/**
 * 
 * @author Ken Larson
 */
public class DefaultCaptureSystemFactorySingleton
{
	private static CaptureSystemFactory instance;
	public static CaptureSystemFactory instance()
	{
		if (instance != null)
			return instance;
		if (OSUtils.isLinux())
			instance = new NativeCaptureSystemFactory();
		else if (OSUtils.isWindows())
			instance = new NativeCaptureSystemFactory();
		else if (OSUtils.isMacOSX())
			instance = new QTCaptureSystemFactory();
//		else
//			instance = new JMFCaptureSystemFactory();
		return instance;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy