Skip to main content

H264CapsFixup Class

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

Declaration

class simaai::neat::H264CapsFixup { ... }

Included Headers

#include <H264CapsFixup.h>

Base class

classNode

Public Constructors Index

H264CapsFixup (int fallback_fps, int fallback_width, int fallback_height)

Construct with fallback framerate and frame geometry to inject when missing. 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...

intfallback_fps () const

Fallback framerate, in frames per second. More...

intfallback_width () const

Fallback frame width, in pixels. More...

intfallback_height () const

Fallback frame height, in pixels. More...

Private Member Attributes Index

intfallback_fps_ = 30
intfallback_width_ = 1280
intfallback_height_ = 720

Description

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

Place between an RTP source and H264Depacketize when the source emits caps that lack framerate or geometry. The fallback values are only applied to fields the upstream caps don't already specify.

Definition at line 30 of file H264CapsFixup.h.

Public Constructors

H264CapsFixup()

simaai::neat::H264CapsFixup::H264CapsFixup (int fallback_fps, int fallback_width, int fallback_height)

Construct with fallback framerate and frame geometry to inject when missing.

Definition at line 33 of file H264CapsFixup.h.

Public Member Functions

backend_fragment()

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

GStreamer fragment this Node emits.

Definition at line 44 of file H264CapsFixup.h.

caps_behavior()

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

Whether the Node negotiates static or dynamic caps.

Definition at line 40 of file H264CapsFixup.h.

40 NodeCapsBehavior caps_behavior() const override {
41 return NodeCapsBehavior::Static;
42 }

element_names()

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

Deterministic element names this Node will create.

Definition at line 46 of file H264CapsFixup.h.

fallback_fps()

int simaai::neat::H264CapsFixup::fallback_fps ()
inline

Fallback framerate, in frames per second.

Definition at line 49 of file H264CapsFixup.h.

49 int fallback_fps() const {
50 return fallback_fps_;
51 }

fallback_height()

int simaai::neat::H264CapsFixup::fallback_height ()
inline

Fallback frame height, in pixels.

Definition at line 57 of file H264CapsFixup.h.

57 int fallback_height() const {
58 return fallback_height_;
59 }

fallback_width()

int simaai::neat::H264CapsFixup::fallback_width ()
inline

Fallback frame width, in pixels.

Definition at line 53 of file H264CapsFixup.h.

53 int fallback_width() const {
54 return fallback_width_;
55 }

kind()

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

Type label for this Node kind.

Definition at line 36 of file H264CapsFixup.h.

36 std::string kind() const override {
37 return "H264CapsFixup";
38 }

Private Member Attributes

fallback_fps_

int simaai::neat::H264CapsFixup::fallback_fps_ = 30

Definition at line 62 of file H264CapsFixup.h.

62 int fallback_fps_ = 30;

fallback_height_

int simaai::neat::H264CapsFixup::fallback_height_ = 720

Definition at line 64 of file H264CapsFixup.h.

64 int fallback_height_ = 720;

fallback_width_

int simaai::neat::H264CapsFixup::fallback_width_ = 1280

Definition at line 63 of file H264CapsFixup.h.

63 int fallback_width_ = 1280;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.