Skip to main content

StillImageInput Class

Declaration

class simaai::neat::StillImageInput { ... }

Included Headers

#include <StillImageInput.h>

Base classes

classNode
classOutputSpecProvider

Public Constructors Index

StillImageInput (std::string image_path, ContentWidth content_w, ContentHeight content_h, EncodeWidth enc_w, EncodeHeight enc_h, FramesPerSecond fps)

Public Member Functions Index

std::stringkind () const override
std::stringuser_label () const override
InputRoleinput_role () const override
NodeCapsBehaviorcaps_behavior () const override
std::stringbackend_fragment (int node_index) const override
std::vector< std::string >element_names (int node_index) const override
OutputSpecoutput_spec (const OutputSpec &input) const override
const std::string &image_path () const
intcontent_w () const
intcontent_h () const
intenc_w () const
intenc_h () const
intfps () const
const std::shared_ptr< std::vector< uint8_t > > &nv12_enc () const

Private Member Attributes Index

std::stringimage_path_
intcontent_w_ = 0
intcontent_h_ = 0
intenc_w_ = 0
intenc_h_ = 0
intfps_ = 30
std::shared_ptr< std::vector< uint8_t > >nv12_enc_

Definition at line 18 of file StillImageInput.h.

Public Constructors

StillImageInput()

simaai::neat::StillImageInput::StillImageInput (std::string image_path, ContentWidth content_w, ContentHeight content_h, EncodeWidth enc_w, EncodeHeight enc_h, FramesPerSecond fps)

Definition at line 50 of file StillImageInput.h.

Public Member Functions

backend_fragment()

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

Definition at line 66 of file StillImageInput.h.

caps_behavior()

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

Definition at line 62 of file StillImageInput.h.

62 NodeCapsBehavior caps_behavior() const override {
63 return NodeCapsBehavior::Static;
64 }

content_h()

int simaai::neat::StillImageInput::content_h ()
inline

Definition at line 76 of file StillImageInput.h.

76 int content_h() const {
77 return content_h_;
78 }

content_w()

int simaai::neat::StillImageInput::content_w ()
inline

Definition at line 73 of file StillImageInput.h.

73 int content_w() const {
74 return content_w_;
75 }

element_names()

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

Definition at line 67 of file StillImageInput.h.

enc_h()

int simaai::neat::StillImageInput::enc_h ()
inline

Definition at line 82 of file StillImageInput.h.

82 int enc_h() const {
83 return enc_h_;
84 }

enc_w()

int simaai::neat::StillImageInput::enc_w ()
inline

Definition at line 79 of file StillImageInput.h.

79 int enc_w() const {
80 return enc_w_;
81 }

fps()

int simaai::neat::StillImageInput::fps ()
inline

Definition at line 85 of file StillImageInput.h.

85 int fps() const {
86 return fps_;
87 }

image_path()

const std::string& simaai::neat::StillImageInput::image_path ()
inline

Definition at line 70 of file StillImageInput.h.

70 const std::string& image_path() const {
71 return image_path_;
72 }

input_role()

InputRole simaai::neat::StillImageInput::input_role ()
inline

Definition at line 59 of file StillImageInput.h.

59 InputRole input_role() const override {
60 return InputRole::Source;
61 }

kind()

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

Definition at line 53 of file StillImageInput.h.

53 std::string kind() const override {
54 return "StillImageInput";
55 }

nv12_enc()

const std::shared_ptr<std::vector<uint8_t> >& simaai::neat::StillImageInput::nv12_enc ()
inline

Definition at line 88 of file StillImageInput.h.

88 const std::shared_ptr<std::vector<uint8_t>>& nv12_enc() const {
89 return nv12_enc_;
90 }

output_spec()

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

Definition at line 68 of file StillImageInput.h.

user_label()

std::string simaai::neat::StillImageInput::user_label ()
inline

Definition at line 56 of file StillImageInput.h.

56 std::string user_label() const override {
57 return image_path_;
58 }

Private Member Attributes

content_h_

int simaai::neat::StillImageInput::content_h_ = 0

Definition at line 95 of file StillImageInput.h.

95 int content_h_ = 0;

content_w_

int simaai::neat::StillImageInput::content_w_ = 0

Definition at line 94 of file StillImageInput.h.

94 int content_w_ = 0;

enc_h_

int simaai::neat::StillImageInput::enc_h_ = 0

Definition at line 97 of file StillImageInput.h.

97 int enc_h_ = 0;

enc_w_

int simaai::neat::StillImageInput::enc_w_ = 0

Definition at line 96 of file StillImageInput.h.

96 int enc_w_ = 0;

fps_

int simaai::neat::StillImageInput::fps_ = 30

Definition at line 98 of file StillImageInput.h.

98 int fps_ = 30;

image_path_

std::string simaai::neat::StillImageInput::image_path_

Definition at line 93 of file StillImageInput.h.

93 std::string image_path_;

nv12_enc_

std::shared_ptr<std::vector<uint8_t> > simaai::neat::StillImageInput::nv12_enc_

Definition at line 100 of file StillImageInput.h.

100 std::shared_ptr<std::vector<uint8_t>> nv12_enc_;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.