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

Method all_rows_f

src/rows.rs:209–215  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

207
208 #[inline]
209 pub fn all_rows_f(&mut self) -> Result<&[f_pixel], Error> {
210 if self.f_pixels.is_some() {
211 return Ok(self.f_pixels.as_ref().unwrap()); // borrow-checker :(
212 }
213 self.prepare_iter(&mut temp_buf(self.width())?, false)?;
214 self.f_pixels.as_deref().ok_or(Error::Unsupported)
215 }
216
217 /// Not recommended
218 #[cfg(feature = "_internal_c_ffi")]

Callers 1

contrast_mapsMethod · 0.80

Calls 3

temp_bufFunction · 0.85
prepare_iterMethod · 0.80
widthMethod · 0.45

Tested by

no test coverage detected