blob: 4d1f708844467298413a9261950aedc8af41e211 [file] [log] [blame]
Éanna Ó Catháin919c14e2020-09-14 17:36:49 +01001//
2// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <cstddef>
9#include <cstdint>
10#include <vector>
11#include <tuple>
Éanna Ó Catháinc6ab02a2021-04-07 14:35:25 +010012
Éanna Ó Catháin919c14e2020-09-14 17:36:49 +010013#include <armnn/BackendId.hpp>
14
Éanna Ó Catháinc6ab02a2021-04-07 14:35:25 +010015namespace common
Éanna Ó Catháin919c14e2020-09-14 17:36:49 +010016{
17
18struct Size
19{
20
21 uint32_t m_Width;
22 uint32_t m_Height;
23
24 Size() : Size(0, 0) {}
25
26 Size(uint32_t width, uint32_t height) :
27 m_Width{width}, m_Height{height} {}
28
29 Size(const Size& other)
30 : Size(other.m_Width, other.m_Height) {}
31
32 ~Size() = default;
33
34 Size &operator=(const Size& other) = default;
35};
36
37struct BBoxColor
38{
39 std::tuple<int, int, int> colorCode;
40};
41
Éanna Ó Catháinc6ab02a2021-04-07 14:35:25 +010042struct PipelineOptions
Éanna Ó Catháin919c14e2020-09-14 17:36:49 +010043{
44 std::string m_ModelName;
45 std::string m_ModelFilePath;
46 std::vector<armnn::BackendId> m_backends;
47};
48
Éanna Ó Catháinc6ab02a2021-04-07 14:35:25 +010049template<typename T>
50using InferenceResult = std::vector<T>;
51
52template<typename T>
53using InferenceResults = std::vector<InferenceResult<T>>;
54} // namespace common