SessionOptions.h File
Runtime options and core Sample/Pull types. More...
Included Headers
#include "pipeline/SessionReport.h"
#include "pipeline/TensorTypes.h"
#include "pipeline/Tensor.h"
#include "pipeline/TensorCore.h"
#include <cstddef>
#include <functional>
#include <initializer_list>
#include <optional>
#include <string>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
Classes Index
| struct | RtspServerOptions |
| struct | ValidateOptions |
| struct | SessionOptions |
| struct | OutputTensorOptions |
| struct | PullError |
| struct | Sample |
Description
Runtime options and core Sample/Pull types.
File Listing
The file content with the documentation metadata removed is:
8#include "pipeline/SessionReport.h"
9#include "pipeline/TensorTypes.h"
10#include "pipeline/Tensor.h"
11#include "pipeline/TensorCore.h"
20namespace simaai::neat {
22struct RtspServerOptions {
27 int rtp_port_base = -1;
28 int rtp_port_count = 0;
31struct ValidateOptions {
32 bool parse_launch = true; // build gst pipeline and verify element naming contract
33 bool enforce_names = true; // ensure no unnamed/foreign elements exist
37 Async,
38 Sync,
41struct SessionOptions {
42 int callback_timeout_ms = 1000;
45 std::string element_name_prefix;
46 std::string element_name_suffix;
49struct OutputTensorOptions {
53 int target_width = -1;
54 int target_height = -1;
55 int target_fps = -1;
58enum class SampleKind {
59 Tensor,
60 Bundle,
61 Unknown,
64enum class PullStatus {
65 Ok,
66 Timeout,
67 Closed,
68 Error,
87 std::string caps_string;
88 std::string media_type;
89 std::string payload_tag;
95 int output_index = -1;
97 int64_t orig_input_seq = -1;
100 int64_t duration_ns = -1;
103inline Sample make_tensor_sample(const std::string& port_name, simaai::neat::Tensor tensor) {
104 Sample out;
105 out.kind = SampleKind::Tensor;
106 out.port_name = port_name;
107 out.tensor = std::move(tensor);
111inline Sample make_bundle_sample(std::initializer_list<Sample> fields) {
112 Sample out;
113 out.kind = SampleKind::Bundle;
114 out.fields = fields;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.