mirror of
https://github.com/opencv/opencv.git
synced 2024-12-14 08:59:11 +08:00
35 lines
865 B
C++
35 lines
865 B
C++
#ifndef __HARDWARE_DETECTOR_H__
|
|
#define __HARDWARE_DETECTOR_H__
|
|
|
|
#include <string>
|
|
|
|
#define ARCH_UNKNOWN 0L
|
|
#define ARCH_X86 16777216L
|
|
#define ARCH_X64 33554432L
|
|
#define ARCH_ARMv5 67108864L
|
|
#define ARCH_ARMv6 134217728L
|
|
#define ARCH_ARMv7 268435456L
|
|
#define ARCH_ARMv8 536870912L
|
|
|
|
#define FEATURES_HAS_VFPv3d16 1L
|
|
#define FEATURES_HAS_VFPv3 2L
|
|
#define FEATURES_HAS_NEON 4L
|
|
#define FEATURES_HAS_NEON2 8L
|
|
#define FEATURES_HAS_SSE 1L
|
|
#define FEATURES_HAS_SSE2 2L
|
|
#define FEATURES_HAS_SSSE3 4L
|
|
#define FEATURES_HAS_GPU 65536L
|
|
|
|
// TODO: Do not forget to add Platrfom name to PackageInfo::PlatformNameMap
|
|
// in method PackageInfo::InitPlatformNameMap()
|
|
#define PLATFORM_UNKNOWN 0L
|
|
#define PLATFORM_TEGRA 1L
|
|
#define PLATFORM_TEGRA2 2L
|
|
#define PLATFORM_TEGRA3 3L
|
|
|
|
int DetectKnownPlatforms();
|
|
int GetProcessorCount();
|
|
std::string GetPlatformName();
|
|
int GetCpuID();
|
|
|
|
#endif |