H264Parse.h File
SimaAI H264 parse node wrapper. More...
Included Headers
#include "builder/Node.h"
#include "builder/OutputSpec.h"
#include <memory>
#include <optional>
#include <string>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | nodes |
Classes Index
| struct | H264ParseOptions |
| class | H264Parse |
Description
SimaAI H264 parse node wrapper.
File Listing
The file content with the documentation metadata removed is:
17namespace simaai::neat {
25struct H264ParseOptions {
28 int config_interval = 1;
33 enum class StreamFormat { Auto, AVC, ByteStream };
40 bool enforce_caps = false;
45 explicit H264Parse(H264ParseOptions opt = {});
49 NodeCapsBehavior caps_behavior() const override {
50 return opt_.enforce_caps ? NodeCapsBehavior::Static : NodeCapsBehavior::Dynamic;
53 std::string backend_fragment(int node_index) const override;
54 std::vector<std::string> element_names(int node_index) const override;
55 OutputSpec output_spec(const OutputSpec& input) const override;
57 const H264ParseOptions& options() const {
62 H264ParseOptions opt_;
67namespace simaai::neat::nodes {
70std::shared_ptr<simaai::neat::Node> H264Parse(simaai::neat::H264ParseOptions opt);
74 simaai::neat::H264ParseOptions opt;
75 opt.config_interval = config_interval;
76 opt.enforce_caps = false;
77 return H264Parse(opt);
82inline std::shared_ptr<simaai::neat::Node> H264ParseAu(int config_interval = 1) {
83 simaai::neat::H264ParseOptions opt;
84 opt.config_interval = config_interval;
85 opt.enforce_caps = true;
88 return H264Parse(opt);
93inline std::shared_ptr<simaai::neat::Node> H264ParseForRtp(int config_interval = 1) {
94 simaai::neat::H264ParseOptions opt;
95 opt.config_interval = config_interval; // usually 1
96 opt.enforce_caps = true;
99 return H264Parse(opt);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.