Input.h File
Input Node — push-mode source. More...
Included Headers
#include "builder/Node.h"
#include "builder/OutputSpec.h"
#include "pipeline/FormatSpec.h"
#include <memory>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | nodes |
Classes Index
| struct | PreprocessMetaTemplate |
|
Preprocess metadata template attached to ingress buffers. More... | |
| struct | InputOptions |
|
Caps, buffering, and pool options for the Input Node. More... | |
| class | Input |
|
Push-mode source Node. More... | |
Description
Input Node — push-mode source.
Lets the application feed samples via Run::push().
Wraps an appsrc-style element. Use this when the application owns frame production (e.g. capturing from a custom source, replaying a buffer, or feeding test data) and needs to deliver samples to the pipeline by hand. A Session that begins with an Input Node is built with Session::build() and driven by Run::push() rather than Run::run().
File Listing
The file content with the documentation metadata removed is:
16#include "pipeline/FormatSpec.h"
24namespace simaai::neat {
35struct PreprocessMetaTemplate {
37 int target_width = 0;
38 int target_height = 0;
39 int scaled_width = 0;
40 int scaled_height = 0;
41 std::string resize_mode = "none";
51 bool tessellate = false;
62enum class InputMemoryPolicy {
63 Auto = 0,
64 Ev74,
65 Dms0,
66 SystemMemory,
74struct InputOptions {
75 std::string media_type =
84 int max_height = -1;
90 std::string caps_override;
93 bool do_timestamp = true;
95 int stream_type = 0;
98 bool use_simaai_pool = true;
99 int pool_min_buffers = 1;
100 int pool_max_buffers = 2;
106 std::string buffer_name;
110 std::optional<PreprocessMetaTemplate> preprocess_meta;
125 explicit Input(InputOptions opt);
132 std::string user_label() const override {
136 InputRole input_role() const override {
140 NodeCapsBehavior caps_behavior() const override {
144 std::string buffer_name_hint(int node_index) const override;
147 std::string backend_fragment(int node_index) const override;
149 std::vector<std::string> element_names(int node_index) const override;
151 OutputSpec output_spec(const OutputSpec& input) const override;
154 const InputOptions& options() const {
158 std::string caps_string() const;
161 InputOptions opt_;
166namespace simaai::neat::nodes {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.