Éanna Ó Catháin | 919c14e | 2020-09-14 17:36:49 +0100 | [diff] [blame] | 1 | // |
| 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áin | c6ab02a | 2021-04-07 14:35:25 +0100 | [diff] [blame] | 12 | |
Éanna Ó Catháin | 919c14e | 2020-09-14 17:36:49 +0100 | [diff] [blame] | 13 | #include <armnn/BackendId.hpp> |
| 14 | |
Éanna Ó Catháin | c6ab02a | 2021-04-07 14:35:25 +0100 | [diff] [blame] | 15 | namespace common |
Éanna Ó Catháin | 919c14e | 2020-09-14 17:36:49 +0100 | [diff] [blame] | 16 | { |
| 17 | |
| 18 | struct 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 | |
| 37 | struct BBoxColor |
| 38 | { |
| 39 | std::tuple<int, int, int> colorCode; |
| 40 | }; |
| 41 | |
Éanna Ó Catháin | c6ab02a | 2021-04-07 14:35:25 +0100 | [diff] [blame] | 42 | struct PipelineOptions |
Éanna Ó Catháin | 919c14e | 2020-09-14 17:36:49 +0100 | [diff] [blame] | 43 | { |
| 44 | std::string m_ModelName; |
| 45 | std::string m_ModelFilePath; |
| 46 | std::vector<armnn::BackendId> m_backends; |
Eanna O Cathain | 2f0ddb6 | 2022-03-03 15:58:10 +0000 | [diff] [blame^] | 47 | bool m_ProfilingEnabled = false; |
Éanna Ó Catháin | 919c14e | 2020-09-14 17:36:49 +0100 | [diff] [blame] | 48 | }; |
| 49 | |
Éanna Ó Catháin | c6ab02a | 2021-04-07 14:35:25 +0100 | [diff] [blame] | 50 | template<typename T> |
| 51 | using InferenceResult = std::vector<T>; |
| 52 | |
| 53 | template<typename T> |
| 54 | using InferenceResults = std::vector<InferenceResult<T>>; |
| 55 | } // namespace common |