DvsenseDriver  1.0.3
The SDK for dvsense products.
dvsense::RawEventStreamFormat Class Reference

A class to describe the format and geometry of raw event stream directly from camera before decoding. More...

#include <RawEventStreamFormat.hpp>

Public Member Functions

 RawEventStreamFormat (std::string format)
 Construct RawEventStreamFormat instance from string read from camera. More...
 
std::string getEncodingTypeStr () const
 Get the encoding type as a string. More...
 
RawEventStreamEncodingType getEncodingType () const
 Get the encoding type. More...
 
bool contains (const std::string &name) const
 Check if the format contains a specific option. More...
 
const std::string & operator[] (const std::string_view name) const
 Accessor to format options, such as width, height, etc. More...
 

Detailed Description

A class to describe the format and geometry of raw event stream directly from camera before decoding.

Constructor & Destructor Documentation

◆ RawEventStreamFormat()

dvsense::RawEventStreamFormat::RawEventStreamFormat ( std::string  format)

Construct RawEventStreamFormat instance from string read from camera.

Parameters
format,expectedto look like "EVT3;height=720;width=1280"

Member Function Documentation

◆ getEncodingTypeStr()

std::string dvsense::RawEventStreamFormat::getEncodingTypeStr ( ) const

Get the encoding type as a string.

Returns
std::string Encoding type as a string

◆ getEncodingType()

RawEventStreamEncodingType dvsense::RawEventStreamFormat::getEncodingType ( ) const

Get the encoding type.

Returns
RawEventStreamEncodingType Encoding type

◆ contains()

bool dvsense::RawEventStreamFormat::contains ( const std::string &  name) const

Check if the format contains a specific option.

Parameters
nameName of the option to check
Returns
bool True if the option is contained, false otherwise

◆ operator[]()

const std::string& dvsense::RawEventStreamFormat::operator[] ( const std::string_view  name) const

Accessor to format options, such as width, height, etc.

Parameters
nameOption name
Returns
const std::string & Value of the option