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

Method should_use_low_memory

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

Source from the content-addressed store, hash-verified

146
147 #[must_use]
148 fn should_use_low_memory(&self) -> bool {
149 self.width() * self.height() > LIQ_HIGH_MEMORY_LIMIT / std::mem::size_of::<f_pixel>()
150 }
151
152 #[inline]
153 fn temp_f_row_for_iter(&self) -> Result<Option<Box<[MaybeUninit<f_pixel>]>>, Error> {

Callers 1

prepare_iterMethod · 0.80

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected