mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
13 years ago
|
#ifndef __PACKAGE_INFO_H__
|
||
|
#define __PACKAGE_INFO_H__
|
||
|
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
|
||
|
#define ARCH_X86_NAME "x86"
|
||
|
#define ARCH_X64_NAME "x64"
|
||
12 years ago
|
#define ARCH_MIPS_NAME "mips"
|
||
13 years ago
|
#define ARCH_ARMv5_NAME "armv5"
|
||
|
#define ARCH_ARMv6_NAME "armv6"
|
||
13 years ago
|
#define ARCH_ARMv7_NAME "armv7a"
|
||
13 years ago
|
#define ARCH_ARMv8_NAME "armv8"
|
||
|
|
||
|
#define FEATURES_HAS_VFPv3d16_NAME "vfpv3d16"
|
||
|
#define FEATURES_HAS_VFPv3_NAME "vfpv3"
|
||
|
#define FEATURES_HAS_NEON_NAME "neon"
|
||
|
#define FEATURES_HAS_NEON2_NAME "neon2"
|
||
|
#define FEATURES_HAS_SSE_NAME "sse"
|
||
|
#define FEATURES_HAS_SSE2_NAME "sse2"
|
||
|
#define FEATURES_HAS_SSSE3_NAME "ssse3"
|
||
|
#define FEATURES_HAS_GPU_NAME "gpu"
|
||
|
|
||
|
#define PLATFORM_TEGRA_NAME "tegra"
|
||
|
#define PLATFORM_TEGRA2_NAME "tegra2"
|
||
|
#define PLATFORM_TEGRA3_NAME "tegra3"
|
||
12 years ago
|
#define PLATFORM_TEGRA4_NAME "tegra4"
|
||
13 years ago
|
|
||
|
class PackageInfo
|
||
13 years ago
|
{
|
||
13 years ago
|
public:
|
||
12 years ago
|
PackageInfo(int version, int platform, int cpu_id, std::string install_path = "/data/data/");
|
||
12 years ago
|
PackageInfo(const std::string& fullname, const std::string& install_path, std::string package_version = "0.0");
|
||
13 years ago
|
std::string GetFullName() const;
|
||
12 years ago
|
int GetVersion() const;
|
||
13 years ago
|
int GetPlatform() const;
|
||
|
int GetCpuID() const;
|
||
|
std::string GetInstalationPath() const;
|
||
|
bool operator==(const PackageInfo& package) const;
|
||
|
static const std::map<int, std::string> PlatformNameMap;
|
||
|
bool IsValid() const;
|
||
13 years ago
|
|
||
13 years ago
|
protected:
|
||
|
static std::map<int, std::string> InitPlatformNameMap();
|
||
12 years ago
|
int Version;
|
||
13 years ago
|
int Platform;
|
||
|
int CpuID;
|
||
|
std::string FullName;
|
||
|
std::string InstallPath;
|
||
|
static const std::string BasePackageName;
|
||
|
};
|
||
|
|
||
12 years ago
|
#endif
|