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

Method rgba_rows_iter

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

Source from the content-addressed store, hash-verified

196
197 #[inline]
198 pub fn rgba_rows_iter(&self) -> Result<DynamicRowsIter<'_, 'pixels, 'rows>, Error> {
199 // This happens when histogram image is recycled
200 if let PixelsSource::Pixels { rows, .. } = &self.pixels {
201 if rows.as_slice().is_empty() {
202 return Err(Error::Unsupported);
203 }
204 }
205 Ok(DynamicRowsIter { px: self, temp_f_row: None })
206 }
207
208 #[inline]
209 pub fn all_rows_f(&mut self) -> Result<&[f_pixel], Error> {

Callers 1

add_pixel_rowsMethod · 0.80

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected