|
ifw-rtmstools 3.0.0
|
The RtmsReceiverTool class. More...
#include <rtmsReceiverTool.hpp>
Public Member Functions | |
| RtmsReceiverTool (std::string address, int port, std::string net_if, int width, int height, int bpp, uint32_t samples) | |
| virtual void | HandleLeaderPacket () |
| Invoked to handle a MUDPI/RTMS Leader Packet. | |
| virtual void | HandlePayloadPacket (mudpiif::mudpiPacketJumbo &packet) |
| Invoked to handle a MUDPI/RTMS Payload Packet. | |
| virtual void | HandleTrailerPacket () |
| Invoked to handle a MUDPI/RTMS Trailer Packet. | |
| virtual void | HandleLostPackets () |
| Handle the case where packets are lost. | |
| std::string | GenerateReport () const |
Public Member Functions inherited from ifw::rtmstools::RtmsReceiver | |
| RtmsReceiver (std::string address, int port, std::string net_if, int width, int height, int bpp, const int rcv_buf_factor=3) | |
| virtual | ~RtmsReceiver () |
| int | GetSize () const |
| Get image size in bytes. | |
| int | GetWidth () const |
| int | GetHeight () const |
| void | ReceivePacket (const boost::system::error_code &error, size_t bytes_transferred) |
| Callback to process RTMS packets. | |
| virtual void | HandleWrongFrameId () |
| Handle the case where a wrong frame ID is received. | |
| virtual void | Wait () |
| Wait for incoming network data (for asynchroneous use) | |
| void | StartReceiver () |
| Network configuration. | |
| void | StopReceiver () |
| int32_t | GetCurrentSampleId () const |
Public Attributes | |
| uint32_t | m_samples {0} |
| uint32_t | m_samples_received {0} |
| uint32_t | m_samples_lost {0} |
| uint32_t | m_packets_received {0} |
| uint32_t | m_packets_lost {0} |
| int32_t | m_lost_sample_id {-1} |
| double | m_last_heart_beat {0.0} |
Public Attributes inherited from ifw::rtmstools::RtmsReceiver | |
| std::string | m_address |
| int | m_port |
| std::string | m_net_if |
| int | m_width |
| int | m_height |
| int | m_bpp |
| long unsigned int | m_prev_frames_expected |
| long unsigned int | m_prev_frames_received |
| bool | m_execute |
| int | m_rcv_buf_factor {3} |
| double | m_last_lost_packets_log {0.0} |
| double | m_last_diff_sample_id_log {0.0} |
| int32_t | m_current_sample_id {-1} |
| unsigned int | m_sample {0} |
| bool | m_io_service_running {false} |
| boost::asio::io_service | m_io_service |
| boost::asio::ip::udp::socket | m_socket {m_io_service} |
| boost::array< char, PACKET_SIZE > | m_recv_buffer |
| boost::asio::ip::udp::endpoint | m_remote_endpoint |
| struct timeval m_start | m_end |
| int | m_num_frames = 0 |
| log4cplus::Logger | m_logger |
The RtmsReceiverTool class.
RTMS receive class which merely receives the RTMS packets and keeps track of lost packets and samples and computes statistics.
| ifw::rtmstools::RtmsReceiverTool::RtmsReceiverTool | ( | std::string | address, |
| int | port, | ||
| std::string | net_if, | ||
| int | width, | ||
| int | height, | ||
| int | bpp, | ||
| uint32_t | samples ) |
| std::string ifw::rtmstools::RtmsReceiverTool::GenerateReport | ( | ) | const |
|
virtual |
Invoked to handle a MUDPI/RTMS Leader Packet.
Reimplemented from ifw::rtmstools::RtmsReceiver.
|
virtual |
Handle the case where packets are lost.
Reimplemented from ifw::rtmstools::RtmsReceiver.
|
virtual |
Invoked to handle a MUDPI/RTMS Payload Packet.
Reimplemented from ifw::rtmstools::RtmsReceiver.
|
virtual |
Invoked to handle a MUDPI/RTMS Trailer Packet.
Reimplemented from ifw::rtmstools::RtmsReceiver.
| double ifw::rtmstools::RtmsReceiverTool::m_last_heart_beat {0.0} |
| int32_t ifw::rtmstools::RtmsReceiverTool::m_lost_sample_id {-1} |
| uint32_t ifw::rtmstools::RtmsReceiverTool::m_packets_lost {0} |
| uint32_t ifw::rtmstools::RtmsReceiverTool::m_packets_received {0} |
| uint32_t ifw::rtmstools::RtmsReceiverTool::m_samples {0} |
| uint32_t ifw::rtmstools::RtmsReceiverTool::m_samples_lost {0} |
| uint32_t ifw::rtmstools::RtmsReceiverTool::m_samples_received {0} |