Skip to main content

H264CapsFixup.h File

H264CapsFixup Node — normalizes ambiguous H.264 RTP caps before depayload. More...

Included Headers

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

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

classH264CapsFixup

Helper Node that fills in missing H.264 RTP caps fields with fallbacks. More...

Description

H264CapsFixup Node — normalizes ambiguous H.264 RTP caps before depayload.

Some upstream RTP sources negotiate caps that omit framerate or frame size, which trips up downstream stages that need them. This Node patches in fallback values so the rest of the pipeline can negotiate cleanly. Insert between an RTP source and H264Depacketize when caps from the source are unreliable.

File Listing

The file content with the documentation metadata removed is:

1
11#pragma once
12
13#include "builder/Node.h"
14
15#include <memory>
16#include <string>
17#include <vector>
18
19namespace simaai::neat {
20
30class H264CapsFixup final : public Node {
31public:
34
36 std::string kind() const override {
37 return "H264CapsFixup";
38 }
40 NodeCapsBehavior caps_behavior() const override {
41 return NodeCapsBehavior::Static;
42 }
44 std::string backend_fragment(int node_index) const override;
46 std::vector<std::string> element_names(int node_index) const override;
47
49 int fallback_fps() const {
50 return fallback_fps_;
51 }
53 int fallback_width() const {
54 return fallback_width_;
55 }
57 int fallback_height() const {
58 return fallback_height_;
59 }
60
61private:
62 int fallback_fps_ = 30;
63 int fallback_width_ = 1280;
64 int fallback_height_ = 720;
65};
66
67} // namespace simaai::neat
68
69namespace simaai::neat::nodes {
70
72std::shared_ptr<simaai::neat::Node> H264CapsFixup(int fallback_fps = 30, int fallback_width = 1280,
73 int fallback_height = 720);
74
75} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.