Skip to main content

FileInput.h File

FileInput Node — file-system source. More...

Included Headers

#include "builder/Node.h" #include <memory> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

classFileInput

Wraps GStreamer's filesrc element — reads encoded media from a path on disk. More...

Description

FileInput Node — file-system source.

Reads encoded media from a file path.

Source-role Node (InputRole::Source), so a Session that starts with a FileInput uses Session::run() (no push()).

File Listing

The file content with the documentation metadata removed is:

1
9#pragma once
10
11#include "builder/Node.h"
12
13#include <memory>
14#include <string>
15#include <vector>
16
17namespace simaai::neat {
18
31class FileInput final : public Node {
32public:
34 explicit FileInput(std::string path);
35
37 std::string kind() const override {
38 return "FileInput";
39 }
41 std::string user_label() const override {
42 return path_;
43 }
45 InputRole input_role() const override {
46 return InputRole::Source;
47 }
49 NodeCapsBehavior caps_behavior() const override {
50 return NodeCapsBehavior::Dynamic;
51 }
52
54 std::string backend_fragment(int node_index) const override;
56 std::vector<std::string> element_names(int node_index) const override;
57
59 const std::string& path() const {
60 return path_;
61 }
62
63private:
64 std::string path_;
65};
66
67} // namespace simaai::neat
68
69namespace simaai::neat::nodes {
71std::shared_ptr<simaai::neat::Node> FileInput(std::string path);
72} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.