Trait FrameValue

Source
pub trait FrameValue {
    type Output;

    // Required methods
    fn get_frame_value(
        event: &Event,
        source_type: SourceType,
        delta_t: f64,
        practical_d_max: f32,
        delta_t_max: DeltaT,
        view_mode: FramedViewMode,
        px: Option<SaeTime>,
    ) -> Self::Output;
    fn max_f32() -> f32;
}
Expand description

A trait for types that can be used as the value of a pixel in a Frame.

Required Associated Types§

Source

type Output

The type of the output intensity value

Required Methods§

Source

fn get_frame_value( event: &Event, source_type: SourceType, delta_t: f64, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode, px: Option<SaeTime>, ) -> Self::Output

Get the frame-normalized intensity value of an event

Source

fn max_f32() -> f32

The maximum value of the type, as an f32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FrameValue for u8

Source§

type Output = u8

Source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: f64, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode, px: Option<SaeTime>, ) -> Self::Output

Source§

fn max_f32() -> f32

Source§

impl FrameValue for u16

Source§

type Output = u16

Source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: f64, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode, _px: Option<SaeTime>, ) -> Self::Output

Source§

fn max_f32() -> f32

Source§

impl FrameValue for u32

Source§

type Output = u32

Source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: f64, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode, _px: Option<SaeTime>, ) -> Self::Output

Source§

fn max_f32() -> f32

Source§

impl FrameValue for u64

Source§

type Output = u64

Source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: f64, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode, _px: Option<SaeTime>, ) -> Self::Output

Source§

fn max_f32() -> f32

Source§

impl FrameValue for EventCoordless

Source§

type Output = EventCoordless

Source§

fn get_frame_value( event: &Event, _source_type: SourceType, _tpf: f64, _practical_d_max: f32, _delta_t_max: DeltaT, _view_mode: FramedViewMode, _px: Option<SaeTime>, ) -> Self::Output

Source§

fn max_f32() -> f32

Implementors§