47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
#include "velix/core.h"
|
|
|
|
namespace {
|
|
constexpr char kSdkVersion[] = "7.0.0";
|
|
constexpr char kMpvVersion[] = "0.41.0-UNKNOWN";
|
|
constexpr char kMpvCommit[] = "e594f66c35d5eb51ecb44895ceacd1bffa469db2";
|
|
constexpr char kFfmpegCommit[] = "f3a036c695bcde37407b48a84f3d75e827a792a7";
|
|
constexpr char kFfmpegHarmonyCommit[] = "f3a036c695bcde37407b48a84f3d75e827a792a7";
|
|
constexpr char kBuildDate[] = "2026-08-29";
|
|
constexpr char kTarget[] = "OpenHarmony API 24";
|
|
constexpr char kArchitecture[] = "arm64-v8a";
|
|
#ifndef VELIX_CORE_PROFILE_NAME
|
|
#define VELIX_CORE_PROFILE_NAME "default-software"
|
|
#endif
|
|
constexpr char kProfile[] = VELIX_CORE_PROFILE_NAME;
|
|
constexpr char kFeatures[] = "software-decode,opengl,ohos-audio,http,subtitle";
|
|
|
|
constexpr velix_core_build_info kBuildInfo = {
|
|
VELIX_CORE_API_VERSION,
|
|
kSdkVersion,
|
|
kMpvVersion,
|
|
kMpvCommit,
|
|
kFfmpegCommit,
|
|
kFfmpegHarmonyCommit,
|
|
kBuildDate,
|
|
kTarget,
|
|
kArchitecture,
|
|
kProfile,
|
|
kFeatures,
|
|
};
|
|
}
|
|
|
|
extern "C" VELIX_CORE_API uint32_t velix_core_get_api_version(void)
|
|
{
|
|
return VELIX_CORE_API_VERSION;
|
|
}
|
|
|
|
extern "C" VELIX_CORE_API const char* velix_core_get_version(void)
|
|
{
|
|
return kSdkVersion;
|
|
}
|
|
|
|
extern "C" VELIX_CORE_API const velix_core_build_info* velix_core_get_build_info(void)
|
|
{
|
|
return &kBuildInfo;
|
|
}
|