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§
Sourcefn filter(&mut self, points: &mut [LaserPoint], ctx: &OutputFilterContext)
fn filter(&mut self, points: &mut [LaserPoint], ctx: &OutputFilterContext)
Transform the final presented output in place.
Provided Methods§
Sourcefn reset(&mut self, _reason: OutputResetReason)
fn reset(&mut self, _reason: OutputResetReason)
Reset internal continuity state after a stream break.