Skip to main content

filter_highp

Function filter_highp 

Source
pub(crate) fn filter_highp(
    filter: &Filter,
    pixmap: &mut Pixmap,
    filter_scratch: &mut ScratchBuffer,
    transform: Affine,
)
Expand description

Apply the high-precision (f32) version of a filter effect to a layer.

This function dispatches filter primitives from a filter graph to their corresponding CPU implementations using 32-bit floating-point color channels.

§Arguments

  • filter - The filter containing the graph of primitives to apply
  • pixmap - The target pixmap containing rendering metadata
  • filter_scratch - Reusable scratch storage for intermediate buffers
  • transform - The transformation matrix to extract scale from for filter parameters

§Limitations

Currently only supports filter graphs with a single primitive. Multi-primitive filter graphs are not yet implemented.