ifw-rtmstools 3.0.0
|
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 |
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.
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.
src_ip | TODO |
dest_ip | TODO |
dest_port | TODO |
data_type | Type of pixels sent. |
pixels_per_sample | Nb of pixels per image. |
sndr_cfg | Additional sender configuration. |
|
virtual |
int ifw::rtmstools::rtmslib_llnetio::RtmsSender::GetPixelsPerSample | ( | ) | const |
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.
ext_info | Extended Header Info. |
sample_payload | Image data to send. |