StillImageInput Class
Source Node that emits a single image as a continuous video stream. More...
Declaration
Included Headers
Base classes
| class | Node |
| class | OutputSpecProvider |
Public Constructors Index
| StillImageInput (std::string image_path, ContentWidth content_w, ContentHeight content_h, EncodeWidth enc_w, EncodeHeight enc_h, FramesPerSecond fps) | |
|
Construct from an image path plus content / encode geometry and emit framerate. More... | |
Public Member Functions Index
| std::string | kind () const override |
|
Type label for this Node kind. More... | |
| std::string | user_label () const override |
|
User-facing label for this Node. More... | |
| InputRole | input_role () const override |
|
Role this Node plays as a stream source. 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... | |
| const std::string & | image_path () const |
|
Path to the still image file loaded at construction. More... | |
| int | content_w () const |
|
Original content width, in pixels. More... | |
| int | content_h () const |
|
Original content height, in pixels. More... | |
| int | enc_w () const |
|
Encoded output width, in pixels. More... | |
| int | enc_h () const |
|
Encoded output height, in pixels. More... | |
| int | fps () const |
|
Emit framerate, in frames per second. More... | |
| const std::shared_ptr< std::vector< uint8_t > > & | nv12_enc () const |
|
Pre-encoded NV12 buffer of the loaded image, sized to the encode geometry. More... | |
Private Member Attributes Index
| std::string | image_path_ |
| int | content_w_ = 0 |
| int | content_h_ = 0 |
| int | enc_w_ = 0 |
| int | enc_h_ = 0 |
| int | fps_ = 30 |
| std::shared_ptr< std::vector< uint8_t > > | nv12_enc_ |
Description
Source Node that emits a single image as a continuous video stream.
The image is loaded once at construction and re-emitted at the configured framerate. Carries InputRole::Source, so the Session is driven with Run::run().
Definition at line 32 of file StillImageInput.h.
Public Constructors
StillImageInput()
|
Construct from an image path plus content / encode geometry and emit framerate.
Definition at line 80 of file StillImageInput.h.
Public Member Functions
backend_fragment()
|
GStreamer fragment this Node emits.
Definition at line 101 of file StillImageInput.h.
caps_behavior()
| inline |
Whether the Node negotiates static or dynamic caps.
Definition at line 96 of file StillImageInput.h.
content_h()
| inline |
Original content height, in pixels.
Definition at line 116 of file StillImageInput.h.
content_w()
| inline |
Original content width, in pixels.
Definition at line 112 of file StillImageInput.h.
element_names()
|
Deterministic element names this Node will create.
Definition at line 103 of file StillImageInput.h.
enc_h()
| inline |
Encoded output height, in pixels.
Definition at line 124 of file StillImageInput.h.
enc_w()
| inline |
Encoded output width, in pixels.
Definition at line 120 of file StillImageInput.h.
fps()
| inline |
Emit framerate, in frames per second.
Definition at line 128 of file StillImageInput.h.
image_path()
| inline |
Path to the still image file loaded at construction.
Definition at line 108 of file StillImageInput.h.
input_role()
| inline |
Role this Node plays as a stream source.
Definition at line 92 of file StillImageInput.h.
kind()
| inline |
Type label for this Node kind.
Definition at line 84 of file StillImageInput.h.
nv12_enc()
| inline |
Pre-encoded NV12 buffer of the loaded image, sized to the encode geometry.
Definition at line 132 of file StillImageInput.h.
output_spec()
|
Negotiated downstream caps produced by this Node.
Definition at line 105 of file StillImageInput.h.
user_label()
| inline |
User-facing label for this Node.
Definition at line 88 of file StillImageInput.h.
Private Member Attributes
content_h_
|
Definition at line 139 of file StillImageInput.h.
content_w_
|
Definition at line 138 of file StillImageInput.h.
enc_h_
|
Definition at line 141 of file StillImageInput.h.
enc_w_
|
Definition at line 140 of file StillImageInput.h.
fps_
|
Definition at line 142 of file StillImageInput.h.
image_path_
|
Definition at line 137 of file StillImageInput.h.
nv12_enc_
|
Definition at line 144 of file StillImageInput.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.