HAL Decoders API
-
template<bool
HAS_4_BITS_INTERFACE
>
classMetavision
::
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.
-
inline virtual bool
-
template<class
FrameType
, typenameT
>
classEHCDecoder
: 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.
-
inline virtual bool
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
, typenameEvent_TIME_HIGH
, typenameEvent_2D
, typenameEvent_EXT_TRIGGER
, typenameEvent_OTHERS
>
classMetavision
::
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 ×tamp_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.
-
inline virtual timestamp
-
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
-
inline