HAL Decoders API

template<bool HAS_4_BITS_INTERFACE>
class Metavision::AERDecoder : public Metavision::I_EventsStreamDecoder

Public Functions

inline virtual bool get_timestamp_shift(timestamp &ts_shift) const override

Finds the timestamp shift.

If the timestamp shift (timestamp of the first event in the stream) is already known, the function returns true and the parameter timestamp_shift will be set to its value. Otherwise, the function returns false and does nothing.

Returns

true if the timestamp shift is already known, false otherwise

inline virtual timestamp get_last_timestamp() const final override

Gets the timestamp of the last event.

Returns

Timestamp of the last event

inline virtual uint8_t get_raw_event_size_bytes() const override

Gets size of a raw event element in bytes.

class Metavision::EventBase
struct RawEvent
template<class FrameType, typename T>
class EHCDecoder : public Metavision::I_EventFrameDecoder<FrameType>
class Metavision::EVT2Decoder : public Metavision::I_EventsStreamDecoder

Public Functions

inline virtual bool get_timestamp_shift(timestamp &ts_shift) const override

Finds the timestamp shift.

If the timestamp shift (timestamp of the first event in the stream) is already known, the function returns true and the parameter timestamp_shift will be set to its value. Otherwise, the function returns false and does nothing.

Returns

true if the timestamp shift is already known, false otherwise

inline virtual timestamp get_last_timestamp() const override

Gets the timestamp of the last event.

Returns

Timestamp of the last event

inline virtual uint8_t get_raw_event_size_bytes() const override

Gets size of a raw event element in bytes.

Warning

doxygenclass: Cannot find class “Metavision::EVT3Decoder” in doxygen xml output for project “HAL” from directory: /home/jenkins/agent/workspace/_validation_ubuntu_hotfix_v4.5.2/workdir_ubuntu-20.04/_build/generated/doc_build/hal/doxygen/xml

template<typename RawEvent, typename Event_TIME_HIGH, typename Event_2D, typename Event_EXT_TRIGGER, typename Event_OTHERS>
class Metavision::EVT21GenericDecoder : public Metavision::I_EventsStreamDecoder

Public Functions

inline virtual timestamp get_last_timestamp() const final override

Gets the timestamp of the last event.

Returns

Timestamp of the last event

inline virtual bool get_timestamp_shift(Metavision::timestamp &timestamp_shift) const override

Finds the timestamp shift.

If the timestamp shift (timestamp of the first event in the stream) is already known, the function returns true and the parameter timestamp_shift will be set to its value. Otherwise, the function returns false and does nothing.

Returns

true if the timestamp shift is already known, false otherwise

inline virtual uint8_t get_raw_event_size_bytes() const override

Gets size of a raw event element in bytes.

class Metavision::MTRDecoder : public Metavision::I_EventFrameDecoder<PointCloud>

Public Functions

inline MTRDecoder(int sensor_width = 1280, int sensor_height = 720, MTRMode mode = MTRMode::MTR)

Constructor.

Parameters
  • sensor_width – Width of the sensor

  • sensor_height – Height of the sensor

  • mode – MTR (Module for Triangulation) stream mode

inline virtual uint8_t get_raw_event_size_bytes() const override

Gets size of a raw event in bytes.

inline virtual void decode(const RawData *ev_bufferp, const RawData *evendp) override

Decodes raw event frame data.

Warning

It is mandatory to pass strictly consecutive buffers from the same source to this method

Parameters
  • raw_data_begin – Pointer to start of frame data

  • raw_data_end – Pointer after the last byte of frame data