File size: 1,566 Bytes
dffe123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*******************************************************************************
 * Copyright (C) 2023 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 ******************************************************************************/

#ifndef VAS_COMMON_HPP
#define VAS_COMMON_HPP

#include <cstdint>

#define OT_VERSION_MAJOR 1
#define OT_VERSION_MINOR 0
#define OT_VERSION_PATCH 0

#define VAS_EXPORT //__attribute__((visibility("default")))

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

#endif // VAS_COMMON_HPP