-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathutils.h
More file actions
33 lines (25 loc) · 776 Bytes
/
utils.h
File metadata and controls
33 lines (25 loc) · 776 Bytes
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
#pragma once
#include <string>
#include "constraints.h"
const std::string DEVICE_PATH = "/proc/device-tree/model";
struct device_type {
enum type { unknown, jetson, pi, test };
type value;
std::string name;
device_type() : value(unknown), name("unknown") {} // Default constructor
device_type(type value, std::string name) : value(value), name(name) {}
};
struct api_params {
std::string api_namespace;
std::string api_type;
std::string api_subtype;
};
struct device_params {
std::string input_source;
std::string input_format;
std::string video_converter;
std::string output_encoder;
};
device_type get_device_type();
device_params get_device_params(device_type device);
api_params get_api_params(device_type device);