H264EncodeSima Class
Hardware-accelerated H.264 encoder Node. More...
Declaration
Included Headers
Base classes
| class | Node |
| class | OutputSpecProvider |
Public Constructors Index
| H264EncodeSima (int w, int h, int fps, int bitrate_kbps=4000, std::string profile="baseline", std::string level="4.0") | |
|
Construct with stream parameters and encoder profile. More... | |
Public Member Functions Index
| std::string | kind () const override |
|
Type label for this Node kind. More... | |
| NodeCapsBehavior | caps_behavior () const override |
|
Whether the Node negotiates static or dynamic caps. More... | |
| std::string | backend_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... | |
| OutputSpec | output_spec (const OutputSpec &input) const override |
|
Negotiated downstream caps produced by this Node. More... | |
| int | width () const |
|
Configured frame width. More... | |
| int | height () const |
|
Configured frame height. More... | |
| int | fps () const |
|
Configured target framerate. More... | |
| int | bitrate_kbps () const |
|
Configured target bitrate, kbps. More... | |
| const std::string & | profile () const |
|
Configured H.264 profile string. More... | |
| const std::string & | level () const |
|
Configured H.264 level string. More... | |
Private Member Attributes Index
| int | w_ = 0 |
| int | h_ = 0 |
| int | fps_ = 30 |
| int | bitrate_kbps_ = 4000 |
| std::string | profile_ = "baseline" |
| std::string | level_ = "4.0" |
Description
Hardware-accelerated H.264 encoder Node.
Definition at line 26 of file H264EncodeSima.h.
Public Constructors
H264EncodeSima()
|
Construct with stream parameters and encoder profile.
- Parameters
-
w Frame width in pixels.
h Frame height in pixels.
fps Target encode framerate.
bitrate_kbps Target output bitrate in kbps (default 4000).
profile H.264 profile string ("baseline", "main", "high").
level H.264 level string (e.g. "4.0").
Definition at line 38 of file H264EncodeSima.h.
Public Member Functions
backend_fragment()
|
GStreamer fragment this Node emits.
Definition at line 51 of file H264EncodeSima.h.
bitrate_kbps()
| inline |
Configured target bitrate, kbps.
Definition at line 70 of file H264EncodeSima.h.
caps_behavior()
| inline |
Whether the Node negotiates static or dynamic caps.
Definition at line 46 of file H264EncodeSima.h.
element_names()
|
Deterministic element names this Node will create.
Definition at line 53 of file H264EncodeSima.h.
fps()
| inline |
Configured target framerate.
Definition at line 66 of file H264EncodeSima.h.