メインコンテンツまでスキップ

VideoSenderOptions Class

Declaration

class simaai::neat::nodes::groups::VideoSenderOptions { ... }

Included Headers

#include <VideoSender.h>

Enumerations Index

enum classInputKind { ... }

Friends Index

simaai::neat::GraphVideoSender

Private Constructors Index

VideoSenderOptions ()=default

Public Member Functions Index

boolis_raw_input () const
boolis_encoded_input () const
intwidth () const
intheight () const
intfps () const
intvideo_port () const

Public Member Attributes Index

std::stringhost = "127.0.0.1"
intchannel = 0
intvideo_port_base = 9000
boolsync = false
boolasync = false
VideoSenderRtpOptionsrtp {}
VideoSenderEncoderOptionsencoder {}

Private Member Attributes Index

InputKindinput_kind_ = InputKind::Encoded
RtspCodeccodec_ = RtspCodec::H264

Codec of the encoded stream; meaningless when input_kind_ is Raw, which is always H.264 because that is the only encoder path. More...

intwidth_ = 0
intheight_ = 0
intfps_ = 0

Public Static Functions Index

static VideoSenderOptionsH264RtpUdpFromRaw (int width, int height, int fps)
static VideoSenderOptionsH264RtpUdpFromEncoded ()
static VideoSenderOptionsPassthrough (RtspCodec codec)

Forward already-encoded frames of codec as RTP over UDP without re-encoding. More...

Definition at line 26 of file VideoSender.h.

Enumerations

InputKind

enum class simaai::neat::nodes::groups::VideoSenderOptions::InputKind
strong
Enumeration values
Raw
Encoded

Definition at line 65 of file VideoSender.h.

Friends

VideoSender

Definition at line 77 of file VideoSender.h.

Private Constructors

VideoSenderOptions()

simaai::neat::nodes::groups::VideoSenderOptions::VideoSenderOptions ()
default

Definition at line 67 of file VideoSender.h.

Public Member Functions

fps()

int simaai::neat::nodes::groups::VideoSenderOptions::fps ()
inline

Definition at line 49 of file VideoSender.h.

height()

int simaai::neat::nodes::groups::VideoSenderOptions::height ()
inline

Definition at line 46 of file VideoSender.h.

is_encoded_input()

bool simaai::neat::nodes::groups::VideoSenderOptions::is_encoded_input ()
inline

Definition at line 40 of file VideoSender.h.

is_raw_input()

bool simaai::neat::nodes::groups::VideoSenderOptions::is_raw_input ()
inline

Definition at line 37 of file VideoSender.h.

video_port()

int simaai::neat::nodes::groups::VideoSenderOptions::video_port ()
inline

Definition at line 52 of file VideoSender.h.

width()

int simaai::neat::nodes::groups::VideoSenderOptions::width ()
inline

Definition at line 43 of file VideoSender.h.

Public Member Attributes

async

bool simaai::neat::nodes::groups::VideoSenderOptions::async = false

Definition at line 60 of file VideoSender.h.

channel

int simaai::neat::nodes::groups::VideoSenderOptions::channel = 0

Definition at line 57 of file VideoSender.h.

encoder

VideoSenderEncoderOptions simaai::neat::nodes::groups::VideoSenderOptions::encoder {}

Definition at line 62 of file VideoSender.h.

host

std::string simaai::neat::nodes::groups::VideoSenderOptions::host = "127.0.0.1"

Definition at line 56 of file VideoSender.h.

rtp

VideoSenderRtpOptions simaai::neat::nodes::groups::VideoSenderOptions::rtp {}

Definition at line 61 of file VideoSender.h.

sync

bool simaai::neat::nodes::groups::VideoSenderOptions::sync = false

Definition at line 59 of file VideoSender.h.

video_port_base

int simaai::neat::nodes::groups::VideoSenderOptions::video_port_base = 9000

Definition at line 58 of file VideoSender.h.

Private Member Attributes

codec_

RtspCodec simaai::neat::nodes::groups::VideoSenderOptions::codec_ = RtspCodec::H264

Codec of the encoded stream; meaningless when input_kind_ is Raw, which is always H.264 because that is the only encoder path.

Definition at line 72 of file VideoSender.h.

fps_

int simaai::neat::nodes::groups::VideoSenderOptions::fps_ = 0

Definition at line 75 of file VideoSender.h.

height_

int simaai::neat::nodes::groups::VideoSenderOptions::height_ = 0

Definition at line 74 of file VideoSender.h.

input_kind_

InputKind simaai::neat::nodes::groups::VideoSenderOptions::input_kind_ = InputKind::Encoded

Definition at line 69 of file VideoSender.h.

width_

int simaai::neat::nodes::groups::VideoSenderOptions::width_ = 0

Definition at line 73 of file VideoSender.h.

Public Static Functions

H264RtpUdpFromEncoded()

VideoSenderOptions simaai::neat::nodes::groups::VideoSenderOptions::H264RtpUdpFromEncoded ()
static

Definition at line 30 of file VideoSender.h.

H264RtpUdpFromRaw()

VideoSenderOptions simaai::neat::nodes::groups::VideoSenderOptions::H264RtpUdpFromRaw (int width, int height, int fps)
static

Definition at line 28 of file VideoSender.h.

Passthrough()

VideoSenderOptions simaai::neat::nodes::groups::VideoSenderOptions::Passthrough (RtspCodec codec)
static

Forward already-encoded frames of codec as RTP over UDP without re-encoding.

Throws std::invalid_argument for codecs the sender cannot packetize.

Definition at line 35 of file VideoSender.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.