Skip to main content

H264Depacketize Class

Depayloads RTP-encapsulated H.264 into a raw H.264 byte stream. More...

Declaration

class simaai::neat::H264Depacketize { ... }

Included Headers

#include <H264Depacketize.h>

Base classes

classNode
classOutputSpecProvider

Public Constructors Index

H264Depacketize (int payload_type=96, int h264_parse_config_interval=-1, int h264_fps=-1, int h264_width=-1, int h264_height=-1, bool enforce_h264_caps=true)

Construct with RTP payload type plus optional H.264 parser / caps overrides. More...

Public Member Functions Index

std::stringkind () const override

Type label for this Node kind. More...

NodeCapsBehaviorcaps_behavior () const override

Whether the Node negotiates static or dynamic caps. More...

std::stringbackend_fragment (int node_index) const override

GStreamer fragment this Node emits. More...

std::vector< std::string >element_names (int node_index) const override

Deterministic element names this Node will create. More...

OutputSpecoutput_spec (const OutputSpec &input) const override

Negotiated downstream caps produced by this Node. More...

intpayload_type () const

RTP payload type filter; values <= 0 disable filtering. More...

inth264_parse_config_interval () const

h264parse config-interval passthrough; -1 leaves the element default. More...

inth264_fps () const

Framerate enforced on depayloaded caps, in fps; -1 = unspecified. More...

inth264_width () const

Width enforced on depayloaded caps, in pixels; -1 = unspecified. More...

inth264_height () const

Height enforced on depayloaded caps, in pixels; -1 = unspecified. More...

boolenforce_h264_caps () const

True if caps enforcement is enabled when geometry/fps overrides are set. More...

Private Member Attributes Index

intpayload_type_ = 96
inth264_parse_config_interval_ = -1
inth264_fps_ = -1
inth264_width_ = -1
inth264_height_ = -1
boolenforce_h264_caps_ = true

Description

Depayloads RTP-encapsulated H.264 into a raw H.264 byte stream.

Place between an RTP source and a decoder. When enforce_h264_caps is true and any of h264_fps / h264_width / h264_height is set, the Node enforces those values on the depayloaded caps; otherwise it negotiates dynamically.

Definition at line 27 of file H264Depacketize.h.

Public Constructors

H264Depacketize()

simaai::neat::H264Depacketize::H264Depacketize (int payload_type=96, int h264_parse_config_interval=-1, int h264_fps=-1, int h264_width=-1, int h264_height=-1, bool enforce_h264_caps=true)
explicit

Construct with RTP payload type plus optional H.264 parser / caps overrides.

payload_type <= 0 disables RTP payload filtering in caps.

Definition at line 31 of file H264Depacketize.h.

Public Member Functions

backend_fragment()

std::string simaai::neat::H264Depacketize::backend_fragment (int node_index)

GStreamer fragment this Node emits.

Definition at line 46 of file H264Depacketize.h.

caps_behavior()

NodeCapsBehavior simaai::neat::H264Depacketize::caps_behavior ()
inline

Whether the Node negotiates static or dynamic caps.

Definition at line 39 of file H264Depacketize.h.

39 NodeCapsBehavior caps_behavior() const override {
40 if (enforce_h264_caps_ && (h264_fps_ > 0 || h264_width_ > 0 || h264_height_ > 0)) {
41 return NodeCapsBehavior::Static;
42 }
43 return NodeCapsBehavior::Dynamic;
44 }

element_names()

std::vector< std::string > simaai::neat::H264Depacketize::element_names (int node_index)

Deterministic element names this Node will create.

Definition at line 48 of file H264Depacketize.h.

enforce_h264_caps()

bool simaai::neat::H264Depacketize::enforce_h264_caps ()
inline

True if caps enforcement is enabled when geometry/fps overrides are set.

Definition at line 73 of file H264Depacketize.h.

73 bool enforce_h264_caps() const {
74 return enforce_h264_caps_;
75 }

h264_fps()

int simaai::neat::H264Depacketize::h264_fps ()
inline

Framerate enforced on depayloaded caps, in fps; -1 = unspecified.

Definition at line 61 of file H264Depacketize.h.

61 int h264_fps() const {
62 return h264_fps_;
63 }

h264_height()

int simaai::neat::H264Depacketize::h264_height ()
inline

Height enforced on depayloaded caps, in pixels; -1 = unspecified.

Definition at line 69 of file H264Depacketize.h.

69 int h264_height() const {
70 return h264_height_;
71 }

h264_parse_config_interval()

int simaai::neat::H264Depacketize::h264_parse_config_interval ()
inline

h264parse config-interval passthrough; -1 leaves the element default.

Definition at line 57 of file H264Depacketize.h.

58 return h264_parse_config_interval_;
59 }

h264_width()

int simaai::neat::H264Depacketize::h264_width ()
inline

Width enforced on depayloaded caps, in pixels; -1 = unspecified.

Definition at line 65 of file H264Depacketize.h.

65 int h264_width() const {
66 return h264_width_;
67 }

kind()

std::string simaai::neat::H264Depacketize::kind ()
inline

Type label for this Node kind.

Definition at line 35 of file H264Depacketize.h.

35 std::string kind() const override {
36 return "H264Depacketize";
37 }

output_spec()

OutputSpec simaai::neat::H264Depacketize::output_spec (const OutputSpec & input)

Negotiated downstream caps produced by this Node.

Definition at line 50 of file H264Depacketize.h.

payload_type()

int simaai::neat::H264Depacketize::payload_type ()
inline

RTP payload type filter; values <= 0 disable filtering.

Definition at line 53 of file H264Depacketize.h.

53 int payload_type() const {
54 return payload_type_;
55 }

Private Member Attributes

enforce_h264_caps_

bool simaai::neat::H264Depacketize::enforce_h264_caps_ = true

Definition at line 83 of file H264Depacketize.h.

83 bool enforce_h264_caps_ = true;

h264_fps_

int simaai::neat::H264Depacketize::h264_fps_ = -1

Definition at line 80 of file H264Depacketize.h.

80 int h264_fps_ = -1;

h264_height_

int simaai::neat::H264Depacketize::h264_height_ = -1

Definition at line 82 of file H264Depacketize.h.

82 int h264_height_ = -1;

h264_parse_config_interval_

int simaai::neat::H264Depacketize::h264_parse_config_interval_ = -1

Definition at line 79 of file H264Depacketize.h.

79 int h264_parse_config_interval_ = -1;

h264_width_

int simaai::neat::H264Depacketize::h264_width_ = -1

Definition at line 81 of file H264Depacketize.h.

81 int h264_width_ = -1;

payload_type_

int simaai::neat::H264Depacketize::payload_type_ = 96

Definition at line 78 of file H264Depacketize.h.

78 int payload_type_ = 96;

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.