DUNE: Uniform Navigational Environment  2016.09.0
Vision::DFK51BG02H::Frame Class Reference

Detailed Description

Container for raw picture data.

Public Member Functions

 Frame (unsigned capacity)
 
 ~Frame (void)
 
void setTimeStamp (void)
 
double getTimeStamp (void)
 
uint8_t * getData (void)
 
unsigned writePacket (unsigned nr, const uint8_t *data, unsigned size)
 
unsigned getPacketCount (void)
 

Constructor & Destructor Documentation

Vision::DFK51BG02H::Frame::Frame ( unsigned  capacity)
inline

Constructor.

Parameters
[in]capacityframe capacity in bytes.
Vision::DFK51BG02H::Frame::~Frame ( void  )
inline

Destructor.

Member Function Documentation

uint8_t* Vision::DFK51BG02H::Frame::getData ( void  )
inline

Get data pointer.

Returns
data pointer.

Referenced by Vision::DFK51BG02H::Task::onMain().

unsigned Vision::DFK51BG02H::Frame::getPacketCount ( void  )
inline

Retrieve the number of packets written to the frame.

This count can be inflated due to duplicated packets.

Returns
packets in the frame.

Referenced by Vision::DFK51BG02H::Task::onMain().

double Vision::DFK51BG02H::Frame::getTimeStamp ( void  )
inline

Retrieve frame timestamp.

Referenced by Vision::DFK51BG02H::Task::onMain().

void Vision::DFK51BG02H::Frame::setTimeStamp ( void  )
inline

Set frame timestamp to current time.

unsigned Vision::DFK51BG02H::Frame::writePacket ( unsigned  nr,
const uint8_t *  data,
unsigned  size 
)
inline

Write packet to frame.

Parameters
[in]nrframe number.
[in]datapacket data.
[in]sizepacket size.
Collaboration diagram for Vision::DFK51BG02H::Frame:
Collaboration graph