RTMS creator class which implements parallel generation of MUDPI packets.
More...
#include <mudpiCreatorParallel.hpp>
RTMS creator class which implements parallel generation of MUDPI packets.
This class is responsible for creation of all the MUDPI packages. This will include:
- The HRTCp leader packet
- One or more HRTCp payload packets
- The HRTCp trailer packet
◆ MudpiCreatorParallel() [1/3]
ifw::fgf::common::MudpiCreatorParallel::MudpiCreatorParallel |
( |
uint32_t | mudpi_topic_id, |
|
|
uint16_t | mudpi_component_id, |
|
|
uint32_t | starting_mudpi_sample_id, |
|
|
hrtcpif::SimSource | hrtcp_sim_source, |
|
|
hrtcpif::Endianness | hrtcp_endianness ) |
◆ MudpiCreatorParallel() [2/3]
Disables unused constructors and operators.
◆ MudpiCreatorParallel() [3/3]
◆ assemblePackets()
std::vector< mudpiif::mudpiPacketJumbo > & ifw::fgf::common::MudpiCreatorParallel::assemblePackets |
( |
std::vector< unsigned char > & | raw_image_data, |
|
|
int | bytes_per_pixel, |
|
|
double | timestamp ) |
This function returns a complete set of MUDPI packets for an image, all having the same sample id.
- Parameters
-
[in] | raw_image_data | Reference to the raw pixel data |
[in] | bytes_per_pixel | Image bytes per pixel information |
[in] | timestamp | The timestamp that shall be used to timestamp the complete set of MUDPI frames for this eparticular frame. |
◆ createInitialPackets()
void ifw::fgf::common::MudpiCreatorParallel::createInitialPackets |
( |
size_t | raw_image_size, |
|
|
int | bytes_per_pixel ) |
This function set the MUDPI packets for an image, all having the same sample id. This is just the initial configuration for the packets in order to reduce the time when adding the payload part.
- Parameters
-
[in] | raw_image_data | Reference to the raw pixel data |
[in] | timestamp | The timestamp that shall be used to timestamp the complete set of MUDPI frames for this eparticular frame. |
- Returns
- Vector of MUDPI packets
◆ increaseSampleId()
void ifw::fgf::common::MudpiCreatorParallel::increaseSampleId |
( |
| ) |
|
◆ operator=()
◆ NUM_THREADS
const size_t ifw::fgf::common::MudpiCreatorParallel::NUM_THREADS = 8 |
|
static |
The documentation for this class was generated from the following files: