Skip to main content

OutputFilter

Trait OutputFilter 

Source
pub trait OutputFilter: Send + 'static {
    // Required method
    fn filter(&mut self, points: &mut [LaserPoint], ctx: &OutputFilterContext);

    // Provided method
    fn reset(&mut self, _reason: OutputResetReason) { ... }
}
Expand description

Hook for advanced output-space processing in frame mode.

The filter runs on the final point sequence immediately before backend write, after transition composition, blanking, and color delay.

WouldBlock retries reuse the already-filtered buffer verbatim. The filter is only called again when a new presented slice is materialized.

Required Methods§

Source

fn filter(&mut self, points: &mut [LaserPoint], ctx: &OutputFilterContext)

Transform the final presented output in place.

Provided Methods§

Source

fn reset(&mut self, _reason: OutputResetReason)

Reset internal continuity state after a stream break.

Implementors§