ifw-rtmstools 3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ifw::rtmstools::rtmslib_llnetio::RtmsSender Class Reference

RtmsSender class. More...

#include <rtmsSender.hpp>

Public Member Functions

 RtmsSender (const std::string &src_ip, const std::string &dest_ip, const int dest_port, const ifw::fnd::datatype::DataType data_type, const int pixels_per_sample, const SenderConfig &sndr_cfg=SenderConfig())
 Simple RTMS Sender class.
 
virtual ~RtmsSender ()
 
void SendSample (const SampleExtInfo &ext_info, const std::vector< uint8_t > &sample_payload)
 User provided method to send an image as an RTMS Sample.
 
int GetPixelsPerSample () const
 

Detailed Description

RtmsSender class.

This class is used to send RTMS samples including the IFW RTMS Extended Info. It is based on the llnetio library. It is expected that the Extended Info of the Leader packet contains the following information:

<ext info> ::= <timestamp (seconds since epoch)>

All fields shall have type int32_t.

Constructor & Destructor Documentation

◆ RtmsSender()

ifw::rtmstools::rtmslib_llnetio::RtmsSender::RtmsSender ( const std::string & src_ip,
const std::string & dest_ip,
const int dest_port,
const ifw::fnd::datatype::DataType data_type,
const int pixels_per_sample,
const SenderConfig & sndr_cfg = SenderConfig() )

Simple RTMS Sender class.

Parameters
src_ipTODO
dest_ipTODO
dest_portTODO
data_typeType of pixels sent.
pixels_per_sampleNb of pixels per image.
sndr_cfgAdditional sender configuration.

◆ ~RtmsSender()

ifw::rtmstools::rtmslib_llnetio::RtmsSender::~RtmsSender ( )
virtual

Member Function Documentation

◆ GetPixelsPerSample()

int ifw::rtmstools::rtmslib_llnetio::RtmsSender::GetPixelsPerSample ( ) const

◆ SendSample()

void ifw::rtmstools::rtmslib_llnetio::RtmsSender::SendSample ( const SampleExtInfo & ext_info,
const std::vector< uint8_t > & sample_payload )

User provided method to send an image as an RTMS Sample.

Parameters
ext_infoExtended Header Info.
sample_payloadImage data to send.

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