ifw-fgf 1.0.0-pre1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
ifw::fgf::common::MudpiCreatorParallel Class Reference

RTMS creator class which implements parallel generation of MUDPI packets. More...

#include <mudpiCreatorParallel.hpp>

Public Member Functions

 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)
 Constructor for the MudpiCreator class.
 
 MudpiCreatorParallel (MudpiCreatorParallel &)=delete
 Disables unused constructors and operators.
 
 MudpiCreatorParallel (MudpiCreatorParallel &&)=delete
 
MudpiCreatorParalleloperator= (MudpiCreatorParallel &)=delete
 
void createInitialPackets (size_t raw_image_size, int bytes_per_pixel)
 
std::vector< mudpiif::mudpiPacketJumbo > & assemblePackets (std::vector< unsigned char > &raw_image_data, int bytes_per_pixel, double timestamp)
 
void increaseSampleId ()
 

Static Public Attributes

static const size_t NUM_THREADS = 8
 

Detailed Description

RTMS creator class which implements parallel generation of MUDPI packets.

This class is responsible for creation of all the MUDPI packages. This will include:

Constructor & Destructor Documentation

◆ 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 )

Constructor for the MudpiCreator class.

◆ MudpiCreatorParallel() [2/3]

ifw::fgf::common::MudpiCreatorParallel::MudpiCreatorParallel ( MudpiCreatorParallel & )
delete

Disables unused constructors and operators.

◆ MudpiCreatorParallel() [3/3]

ifw::fgf::common::MudpiCreatorParallel::MudpiCreatorParallel ( MudpiCreatorParallel && )
delete

Member Function Documentation

◆ 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_dataReference to the raw pixel data
[in]bytes_per_pixelImage bytes per pixel information
[in]timestampThe 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_dataReference to the raw pixel data
[in]timestampThe 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=()

MudpiCreatorParallel & ifw::fgf::common::MudpiCreatorParallel::operator= ( MudpiCreatorParallel & )
delete

Member Data Documentation

◆ NUM_THREADS

const size_t ifw::fgf::common::MudpiCreatorParallel::NUM_THREADS = 8
static

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