Skip to main content

H264Depacketize.h File

RTP H264 depay node wrapper. More...

Included Headers

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

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

classH264Depacketize

Description

RTP H264 depay node wrapper.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7#include "builder/Node.h"
8#include "builder/OutputSpec.h"
9#include <memory>
10#include <vector>
11
12namespace simaai::neat {
13
14class H264Depacketize final : public Node, public OutputSpecProvider {
15public:
16 // payload_type <= 0 disables RTP payload filtering in caps.
18 int h264_fps = -1, int h264_width = -1, int h264_height = -1,
19 bool enforce_h264_caps = true);
20 std::string kind() const override {
21 return "H264Depacketize";
22 }
23 NodeCapsBehavior caps_behavior() const override {
24 if (enforce_h264_caps_ && (h264_fps_ > 0 || h264_width_ > 0 || h264_height_ > 0)) {
25 return NodeCapsBehavior::Static;
26 }
27 return NodeCapsBehavior::Dynamic;
28 }
29 std::string backend_fragment(int node_index) const override;
30 std::vector<std::string> element_names(int node_index) const override;
31 OutputSpec output_spec(const OutputSpec& input) const override;
32
33 int payload_type() const {
34 return payload_type_;
35 }
37 return h264_parse_config_interval_;
38 }
39 int h264_fps() const {
40 return h264_fps_;
41 }
42 int h264_width() const {
43 return h264_width_;
44 }
45 int h264_height() const {
46 return h264_height_;
47 }
48 bool enforce_h264_caps() const {
49 return enforce_h264_caps_;
50 }
51
52private:
53 int payload_type_ = 96;
54 int h264_parse_config_interval_ = -1;
55 int h264_fps_ = -1;
56 int h264_width_ = -1;
57 int h264_height_ = -1;
58 bool enforce_h264_caps_ = true;
59};
60
61} // namespace simaai::neat
62
63namespace simaai::neat::nodes {
64std::shared_ptr<simaai::neat::Node>
65H264Depacketize(int payload_type = 96, int h264_parse_config_interval = -1, int h264_fps = -1,
66 int h264_width = -1, int h264_height = -1, bool enforce_h264_caps = true);
67} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.