Internal OpenCV library in OpenCV Manager support added; Unit tests improved, platform specific tests added, MIPS related tests added; Code refactoring done.pull/33/head
parent
ad58e96581
commit
5ffbcf1e16
30 changed files with 415 additions and 246 deletions
@ -1,4 +1,4 @@ |
||||
APP_ABI := armeabi x86
|
||||
APP_ABI := armeabi x86 mips
|
||||
APP_PLATFORM := android-8
|
||||
APP_STL := stlport_static
|
||||
APP_CPPFLAGS := -fno-rtti -fno-exceptions
|
||||
|
@ -1,52 +0,0 @@ |
||||
package org.opencv.engine.manager; |
||||
|
||||
public class HardwareDetector |
||||
{ |
||||
public static final int ARCH_UNKNOWN = -1; |
||||
|
||||
public static final int ARCH_X86 = 0x01000000; |
||||
public static final int ARCH_X64 = 0x02000000; |
||||
|
||||
public static final int ARCH_ARMv5 = 0x04000000; |
||||
public static final int ARCH_ARMv6 = 0x08000000; |
||||
public static final int ARCH_ARMv7 = 0x10000000; |
||||
public static final int ARCH_ARMv8 = 0x20000000; |
||||
|
||||
// Platform specific features
|
||||
// ! Check CPU arch before !
|
||||
|
||||
// ARM specific features
|
||||
public static final int FEATURES_HAS_VFPv3d16 = 0x01; |
||||
public static final int FEATURES_HAS_VFPv3 = 0x02; |
||||
public static final int FEATURES_HAS_NEON = 0x04; |
||||
public static final int FEATURES_HAS_NEON2 = 0x08; |
||||
|
||||
// X86 specific features
|
||||
public static final int FEATURES_HAS_SSE = 0x01; |
||||
public static final int FEATURES_HAS_SSE2 = 0x02; |
||||
public static final int FEATURES_HAS_SSE3 = 0x04; |
||||
|
||||
// GPU Acceleration options
|
||||
public static final int FEATURES_HAS_GPU = 0x010000; |
||||
|
||||
public static final int PLATFORM_TEGRA = 1; |
||||
public static final int PLATFORM_TEGRA2 = 2; |
||||
public static final int PLATFORM_TEGRA3 = 3; |
||||
|
||||
public static final int PLATFORM_UNKNOWN = 0; |
||||
|
||||
// Return CPU arch and list of supported features
|
||||
public static native int GetCpuID(); |
||||
// Return hardware platform name
|
||||
public static native String GetPlatformName(); |
||||
// Return processor count
|
||||
public static native int GetProcessorCount(); |
||||
|
||||
public static native int DetectKnownPlatforms(); |
||||
|
||||
static |
||||
{ |
||||
System.loadLibrary("OpenCVEngine"); |
||||
System.loadLibrary("OpenCVEngine_jni"); |
||||
} |
||||
} |
@ -1,16 +0,0 @@ |
||||
package org.opencv.engine.manager; |
||||
|
||||
public class OpenCVPackageInfo |
||||
{ |
||||
public OpenCVPackageInfo(String PackageName, String PackageInstallPath, String RevName) |
||||
{ |
||||
|
||||
} |
||||
|
||||
protected long mNativeObject = 0; |
||||
|
||||
protected static native long nativeConstructor(String PackageName, String PackageInstallPath, String RevName); |
||||
protected static native void nativeDestructor(long nativeAddress); |
||||
protected static native String nativeGetVersion(long thiz); |
||||
protected static native String nativeGetPlatfrom(long thiz); |
||||
} |
Loading…
Reference in new issue