find_delta_fuzzy

Function find_delta_fuzzy 

Source
pub fn find_delta_fuzzy(
    curr_pixels: &[Rgb],
    prev_pixels: &[Rgb],
    prev_indices: Option<&[u8]>,
    options: &DeltaOptions<'_>,
) -> Option<FrameDelta>
Expand description

Finds the smallest bounding box and maps pixels to transparent if they are “close enough” to the previous frame’s color.

§Arguments

  • curr_pixels - Pixels of the current frame
  • prev_pixels - Pixels of the previous frame
  • prev_indices - Palette indices used in the previous frame at these coordinates
  • options - Delta compression configuration