Download modules/gapi/src/3rdparty/vasot/include/vas/common.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/3rdparty/vasot/include/vas/common.hpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/3rdparty/vasot/include/vas/common.hpp
-
curl -L -o common.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/3rdparty/vasot/include/vas/common.hpp
1.57 kB
| /******************************************************************************* | |
| * Copyright (C) 2023 Intel Corporation | |
| * | |
| * SPDX-License-Identifier: MIT | |
| ******************************************************************************/ | |
| namespace vas { | |
| /** | |
| * @class Version | |
| * | |
| * Contains version information. | |
| */ | |
| class Version { | |
| public: | |
| /** | |
| * Constructor. | |
| * | |
| * @param[in] major Major version. | |
| * @param[in] minor Minor version. | |
| * @param[in] patch Patch version. | |
| */ | |
| explicit Version(uint32_t major, uint32_t minor, uint32_t patch) : major_(major), minor_(minor), patch_(patch) { | |
| } | |
| /** | |
| * Returns major version. | |
| */ | |
| uint32_t GetMajor() const noexcept { | |
| return major_; | |
| } | |
| /** | |
| * Returns minor version. | |
| */ | |
| uint32_t GetMinor() const noexcept { | |
| return minor_; | |
| } | |
| /** | |
| * Returns patch version. | |
| */ | |
| uint32_t GetPatch() const noexcept { | |
| return patch_; | |
| } | |
| private: | |
| uint32_t major_; | |
| uint32_t minor_; | |
| uint32_t patch_; | |
| }; | |
| /** | |
| * @enum BackendType | |
| * | |
| * Represents HW backend types. | |
| */ | |
| enum class BackendType { | |
| CPU, /**< CPU */ | |
| GPU /**< GPU */ | |
| }; | |
| /** | |
| * @enum ColorFormat | |
| * | |
| * Represents Color formats. | |
| */ | |
| enum class ColorFormat { BGR, NV12, BGRX, GRAY, I420 }; | |
| }; // namespace vas | |