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

Method temp_f_row_for_iter

src/rows.rs:153–158  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

151
152 #[inline]
153 fn temp_f_row_for_iter(&self) -> Result<Option<Box<[MaybeUninit<f_pixel>]>>, Error> {
154 if self.f_pixels.is_some() {
155 return Ok(None);
156 }
157 Ok(Some(temp_buf(self.width())?))
158 }
159
160 pub fn prepare_iter(&mut self, temp_row: &mut [MaybeUninit<RGBA>], allow_steamed: bool) -> Result<(), Error> {
161 debug_assert_eq!(temp_row.len(), self.width as _);

Callers 2

rows_iterMethod · 0.80
rows_iter_preparedMethod · 0.80

Calls 2

temp_bufFunction · 0.85
widthMethod · 0.45

Tested by

no test coverage detected