ifw-ccf 6.0.0
 
Loading...
Searching...
No Matches
rtmsCcfReceiver.hpp
Go to the documentation of this file.
1
8
9#ifndef LLNETIO_RTMS_CCF_RECEIVER_HPP_
10#define LLNETIO_RTMS_CCF_RECEIVER_HPP_
11
13
14#include <ifw/rtmslib_llnetio/rtmsReceiver.hpp>
15#include <ifw/rtmslib_llnetio/sampleExtInfo.hpp>
16
17
19
20
27 class RtmsCcfReceiver : public ifw::rtmslib::RtmsReceiver {
28 public:
29
34 uint16_t m_queue_size{0};
35 uint16_t m_receiver_index{0};
36
37
44 RtmsCcfReceiver(const std::string& receiver_ip,
45 const std::string& interface_name,
46 const int port,
47 const ifw::fnd::datatype::DataType data_type,
48 const int width,
49 const int height,
50 int queue_size,
51 const uint16_t mtu_size,
52 const ifw::rtmslib::ExtendedInfoMode ext_info_mode,
53 const int32_t topic_id);
54
55 virtual ~RtmsCcfReceiver();
56
62 virtual void HandleSampleUser(ifw::rtmslib::SampleExtInfo& ext_info,
63 std::vector<uint8_t>& sample_payload);
64
71 double timeout,
72 bool& frame_received,
73 bool& timed_out);
74
75 virtual void StopReceiver();
76
77 };
78}
79
80#endif // LLNETIO_RTMS_CCF_RECEIVER_HPP_
Frame class used to store the data and metadata for one frames received from the camera.
Definition dataFrame.hpp:20
The FrameQueue class implements a queue, to manage a set of CCF DataFrame instances as a ring buffer.
Definition frameQueue.hpp:17
ifw::ccf::common::FrameQueue * m_frame_queue
Frames buffer.
Definition rtmsCcfReceiver.hpp:31
virtual void StopReceiver()
Definition rtmsCcfReceiver.cpp:123
RtmsCcfReceiver(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, int queue_size, const uint16_t mtu_size, const ifw::rtmslib::ExtendedInfoMode ext_info_mode, const int32_t topic_id)
RTMS Receiver class.
Definition rtmsCcfReceiver.cpp:21
uint16_t m_receiver_index
Definition rtmsCcfReceiver.hpp:35
virtual ~RtmsCcfReceiver()
Definition rtmsCcfReceiver.cpp:18
ifw::ccf::common::DataFrame * m_cur_input_frame
Last receive frame in the queue.
Definition rtmsCcfReceiver.hpp:33
virtual void HandleSampleUser(ifw::rtmslib::SampleExtInfo &ext_info, std::vector< uint8_t > &sample_payload)
User provided method to handle an RTMS Sample received. The received sample will be stored in the fra...
Definition rtmsCcfReceiver.cpp:40
void GetFrame(ifw::ccf::common::DataFrame &data_frame, double timeout, bool &frame_received, bool &timed_out)
Return the most recent frame in the queue.
Definition rtmsCcfReceiver.cpp:96
uint16_t m_queue_size
Definition rtmsCcfReceiver.hpp:34
Definition rtmsCcfReceiver.hpp:18