ifw-rtmstools 3.0.0
|
RtmsReceiverTool class/llnetio version. More...
#include <rtmsReceiverTool.hpp>
Public Member Functions | |
RtmsReceiverTool (const std::string &receiver_ip, const std::string &interface_name, const int port, const ifw::fnd::datatype::DataType data_type, const ifw::rtmstools::rtmslib_llnetio::ReceiverConfig &rcv_cfg, uint32_t samples_requested) | |
virtual void | HandleSampleUser (ifw::rtmstools::rtmslib_llnetio::SampleExtInfo &ext_info, std::vector< uint8_t > &sample_payload) |
User provided method to handle an RTMS Sample received. | |
std::string | GenerateReport () const |
![]() | |
RtmsReceiver (const std::string &receiver_ip, const std::string &interface_name, const int port, const ifw::fnd::datatype::DataType data_type, const ReceiverConfig &rcv_cfg=ReceiverConfig()) | |
RTMS Receiver class. | |
virtual | ~RtmsReceiver () |
void | ReceiveLoop () |
Receiver loop running until RtmsReceiver::StopReceiver() is invoked. | |
virtual void | StopReceiver () |
Signal to RTMS receiver to stop execution. | |
bool | ReceiveSample (SampleExtInfo &ext_info, std::vector< uint8_t > &sample_payload, std::chrono::nanoseconds timeout) |
Receives one sample. Returns true if a sample received within the timeout. | |
int64_t | GetLostFramesCount () const |
Public Attributes | |
uint32_t | m_samples_requested {0} |
uint32_t | m_samples_received {0} |
uint32_t | m_samples_lost {0} |
unsigned int | m_last_sample_id {0} |
double | m_last_heart_beat {0.0} |
Additional Inherited Members | |
![]() | |
static std::atomic< bool > | s_execute = true |
![]() | |
int64_t | GetSampleId () const |
ifw::fnd::datatype::DataType | GetDataType () const |
ReceiverConfig | GetConfig () const |
RtmsReceiverTool class/llnetio version.
RTMS receive class which merely receives the RTMS packets and keeps track of lost packets and samples and computes statistics.
ifw::rtmstools::llnetio::RtmsReceiverTool::RtmsReceiverTool | ( | const std::string & | receiver_ip, |
const std::string & | interface_name, | ||
const int | port, | ||
const ifw::fnd::datatype::DataType | data_type, | ||
const ifw::rtmstools::rtmslib_llnetio::ReceiverConfig & | rcv_cfg, | ||
uint32_t | samples_requested ) |
std::string ifw::rtmstools::llnetio::RtmsReceiverTool::GenerateReport | ( | ) | const |
|
virtual |
User provided method to handle an RTMS Sample received.
ext_info | Extended Header Info. |
sample_payload | Image data pixels. |
Implements ifw::rtmstools::rtmslib_llnetio::RtmsReceiver.
double ifw::rtmstools::llnetio::RtmsReceiverTool::m_last_heart_beat {0.0} |
unsigned int ifw::rtmstools::llnetio::RtmsReceiverTool::m_last_sample_id {0} |
uint32_t ifw::rtmstools::llnetio::RtmsReceiverTool::m_samples_lost {0} |
uint32_t ifw::rtmstools::llnetio::RtmsReceiverTool::m_samples_received {0} |
uint32_t ifw::rtmstools::llnetio::RtmsReceiverTool::m_samples_requested {0} |