MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / remap_progress

Method remap_progress

src/quant.rs:224–226  ·  view source on GitHub ↗

true == abort

(&self, percent: f32)

Source from the content-addressed store, hash-verified

222
223 // true == abort
224 pub(crate) fn remap_progress(&self, percent: f32) -> bool {
225 self.progress_callback.as_ref().map_or(false, |cb| cb(percent) == ControlFlow::Break)
226 }
227
228 /// Remap image into a palette + indices.
229 ///

Callers 2

remap_to_palette_floydFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected