Class EventProcessor
Defined in File event_processor.h
Inheritance Relationships
Derived Type
public event_camera_codecs::NoOpEventProcessor(Class NoOpEventProcessor)
Class Documentation
-
class EventProcessor
Subclassed by event_camera_codecs::NoOpEventProcessor
Public Functions
-
inline virtual ~EventProcessor()
Constructor.
-
virtual void eventCD(uint64_t sensor_time, uint16_t ex, uint16_t ey, uint8_t polarity) = 0
invoked for a change-of-contrast event
- Parameters:
sensor_time – time (usually in nanoseconds, depends on decoder configuration)
ex – image x-coordinate of event
ey – image y-coordinate (from top right)
polarity – 0 if OFF event (intensity decreased), 1 if ON event (intensity increased)
-
virtual void eventExtTrigger(uint64_t sensor_time, uint8_t edge, uint8_t id) = 0
invoked for an external trigger event
- Parameters:
sensor_time – time (usually in nanoseconds, depends on decoder configuration)
edge – indicator if rising or falling edge of trigger pulse
id – identifier of trigger source (e.g. which pin the pulse arrived on)
-
virtual void finished() = 0
called after the processing of the packet has been completed, or the time limit (until_time) has been reached.
-
virtual void rawData(const char *data, size_t len) = 0
passes raw data through from the decoder to the event processor. This can be useful for .e.g. storing the raw data. This method is called once for each processed packet, before eventCD() and eventExtTrigger() are invoked. It is called only when messages are fed into the decoder, not when raw data is already given to the decoder!
- Parameters:
data – pointer to buffer with raw data
len – size of buffer in bytes
-
inline virtual ~EventProcessor()