Merge pull request from SpecLad:platfrom

This commit is contained in:
Roman Donchenko 2013-12-04 13:55:45 +04:00 committed by OpenCV Buildbot
commit 3e1586a1c6
4 changed files with 11 additions and 11 deletions
doc/tutorials/introduction/crosscompilation
platforms/android/service/engine
jni
src/org/opencv/engine/manager

@ -105,7 +105,7 @@ Building OpenCV
Enable hardware optimizations Enable hardware optimizations
----------------------------- -----------------------------
Depending on target platfrom architecture different instruction sets can be used. By default Depending on target platform architecture different instruction sets can be used. By default
compiler generates code for armv5l without VFPv3 and NEON extensions. Add ``-DUSE_VFPV3=ON`` compiler generates code for armv5l without VFPv3 and NEON extensions. Add ``-DUSE_VFPV3=ON``
to cmake command line to enable code generation for VFPv3 and ``-DUSE_NEON=ON`` for using to cmake command line to enable code generation for VFPv3 and ``-DUSE_NEON=ON`` for using
NEON SIMD extensions. NEON SIMD extensions.

@ -170,7 +170,7 @@ inline string JoinPlatform(int platform)
return result; return result;
} }
inline int SplitPlatfrom(const vector<string>& features) inline int SplitPlatform(const vector<string>& features)
{ {
int result = 0; int result = 0;
@ -419,7 +419,7 @@ InstallPath(install_path)
return; return;
} }
Platform = SplitPlatfrom(features); Platform = SplitPlatform(features);
if (PLATFORM_UNKNOWN != Platform) if (PLATFORM_UNKNOWN != Platform)
{ {
switch (Platform) switch (Platform)

@ -170,7 +170,7 @@ TEST(CpuID, CheckVFPv3)
EXPECT_TRUE(cpu_id & FEATURES_HAS_VFPv3); EXPECT_TRUE(cpu_id & FEATURES_HAS_VFPv3);
} }
TEST(PlatfromDetector, CheckTegra) TEST(PlatformDetector, CheckTegra)
{ {
EXPECT_NE(PLATFORM_UNKNOWN, DetectKnownPlatforms()); EXPECT_NE(PLATFORM_UNKNOWN, DetectKnownPlatforms());
} }

@ -90,28 +90,28 @@ public class ManagerActivity extends Activity
mInstalledPackageView.setAdapter(mInstalledPacksAdapter); mInstalledPackageView.setAdapter(mInstalledPacksAdapter);
TextView HardwarePlatformView = (TextView)findViewById(R.id.HardwareValue); TextView HardwarePlatformView = (TextView)findViewById(R.id.HardwareValue);
int Platfrom = HardwareDetector.DetectKnownPlatforms(); int Platform = HardwareDetector.DetectKnownPlatforms();
int CpuId = HardwareDetector.GetCpuID(); int CpuId = HardwareDetector.GetCpuID();
if (HardwareDetector.PLATFORM_UNKNOWN != Platfrom) if (HardwareDetector.PLATFORM_UNKNOWN != Platform)
{ {
if (HardwareDetector.PLATFORM_TEGRA == Platfrom) if (HardwareDetector.PLATFORM_TEGRA == Platform)
{ {
HardwarePlatformView.setText("Tegra"); HardwarePlatformView.setText("Tegra");
} }
else if (HardwareDetector.PLATFORM_TEGRA2 == Platfrom) else if (HardwareDetector.PLATFORM_TEGRA2 == Platform)
{ {
HardwarePlatformView.setText("Tegra 2"); HardwarePlatformView.setText("Tegra 2");
} }
else if (HardwareDetector.PLATFORM_TEGRA3 == Platfrom) else if (HardwareDetector.PLATFORM_TEGRA3 == Platform)
{ {
HardwarePlatformView.setText("Tegra 3"); HardwarePlatformView.setText("Tegra 3");
} }
else if (HardwareDetector.PLATFORM_TEGRA4i == Platfrom) else if (HardwareDetector.PLATFORM_TEGRA4i == Platform)
{ {
HardwarePlatformView.setText("Tegra 4i"); HardwarePlatformView.setText("Tegra 4i");
} }
else if (HardwareDetector.PLATFORM_TEGRA4 == Platfrom) else if (HardwareDetector.PLATFORM_TEGRA4 == Platform)
{ {
HardwarePlatformView.setText("Tegra 4"); HardwarePlatformView.setText("Tegra 4");
} }