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

Rtms2DdtGateway class. More...

#include <rtms2DdtGateway.hpp>

Inheritance diagram for ifw::rtmstools::rtms2ddtlib_llnetio::Rtms2DdtGateway:
ifw::rtmstools::rtmslib_llnetio::RtmsReceiver

Public Member Functions

 Rtms2DdtGateway (const std::string &receiver_ip, const std::string &interface_name, const int port, const ifw::fnd::datatype::DataType data_type, const int width, const int height, const std::string &ddt_broker_uri, const std::string &ddt_stream, const double ddt_interval, const uint16_t mtu_size, const uint16_t ext_info_size, std::string log_file=ifw::rtmstools::rtmslib_llnetio::RTMSTOOLS_LOG_PROPS, std::string log_level="ERROR")
 
 ~Rtms2DdtGateway ()
 
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.
 
- Public Member Functions inherited from ifw::rtmstools::rtmslib_llnetio::RtmsReceiver
 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
 

Additional Inherited Members

- Static Public Attributes inherited from ifw::rtmstools::rtmslib_llnetio::RtmsReceiver
static std::atomic< bool > s_execute = true
 
- Protected Member Functions inherited from ifw::rtmstools::rtmslib_llnetio::RtmsReceiver
int64_t GetSampleId () const
 
ifw::fnd::datatype::DataType GetDataType () const
 
ReceiverConfig GetConfig () const
 

Detailed Description

Rtms2DdtGateway class.

This class is used to receive RTMS packages and assembly back the image when the last packet is received. If any packet is lost, the complete frame will be discarded. It uses BOOST asio library for handling the UDP networking.

Constructor & Destructor Documentation

◆ Rtms2DdtGateway()

ifw::rtmstools::rtms2ddtlib_llnetio::Rtms2DdtGateway::Rtms2DdtGateway ( const std::string & receiver_ip,
const std::string & interface_name,
const int port,
const ifw::fnd::datatype::DataType data_type,
const int width,
const int height,
const std::string & ddt_broker_uri,
const std::string & ddt_stream,
const double ddt_interval,
const uint16_t mtu_size,
const uint16_t ext_info_size,
std::string log_file = ifw::rtmstools::rtmslib_llnetio::RTMSTOOLS_LOG_PROPS,
std::string log_level = "ERROR" )

◆ ~Rtms2DdtGateway()

ifw::rtmstools::rtms2ddtlib_llnetio::Rtms2DdtGateway::~Rtms2DdtGateway ( )

Member Function Documentation

◆ HandleSampleUser()

void ifw::rtmstools::rtms2ddtlib_llnetio::Rtms2DdtGateway::HandleSampleUser ( ifw::rtmstools::rtmslib_llnetio::SampleExtInfo & ext_info,
std::vector< uint8_t > & sample_payload )
virtual

User provided method to handle an RTMS Sample received.

Parameters
ext_infoExtended Header Info.
sample_payloadImage data pixels.

Implements ifw::rtmstools::rtmslib_llnetio::RtmsReceiver.


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