samna.dvs128.event#

Submodules#

Module content#

samna.dvs128.event.decode_dvs_event(arg0: int) samna.dvs128.event.DvsEvent | samna.dvs128.event.FilterValueCurrent | samna.dvs128.event.FilterValuePrevious | samna.dvs128.event.RegisterValue#

Decode a DVS event.

Parameters:

rawEvent (int) – The raw event to decode.

Returns:

The decoded DVS event.

samna.dvs128.event.decode_filter_value_event(arg0: int) samna.dvs128.event.DvsEvent | samna.dvs128.event.FilterValueCurrent | samna.dvs128.event.FilterValuePrevious | samna.dvs128.event.RegisterValue#

Decode a filter value event.

Parameters:

rawEvent (int) – The raw event to decode.

Returns:

The decoded filter value event.

samna.dvs128.event.decode_input_event(arg0: int) samna.dvs128.event.WriteRegisterValue | samna.dvs128.event.ReadRegisterValue | samna.dvs128.event.KillSensorPixel | samna.dvs128.event.ResetSensorPixel | samna.dvs128.event.WriteFilterValue | samna.dvs128.event.ReadFilterValue#

Decode an input event.

Parameters:

rawEvent (int) – The raw event to decode.

Returns:

The decoded input event.

samna.dvs128.event.decode_register_value_event(arg0: int) samna.dvs128.event.DvsEvent | samna.dvs128.event.FilterValueCurrent | samna.dvs128.event.FilterValuePrevious | samna.dvs128.event.RegisterValue#

Decode a register value event.

Parameters:

rawEvent (int) – The raw event to decode.

Returns:

The decoded register value event.

samna.dvs128.event.encode_input_interface_event(arg0: samna.dvs128.event.WriteRegisterValue | samna.dvs128.event.ReadRegisterValue | samna.dvs128.event.KillSensorPixel | samna.dvs128.event.ResetSensorPixel | samna.dvs128.event.WriteFilterValue | samna.dvs128.event.ReadFilterValue) int#

Encode an input interface event.

Parameters:

event (dvs128.event.InputEvent) – The event to encode.

Returns:

The encoded event.