Skip to main content

MAX_MIP_LEVELS

Constant MAX_MIP_LEVELS 

Source
pub const MAX_MIP_LEVELS: usize = 32;
Expand description

A u32 dimension bottoms out at 1x1 after at most this many halvings, so a file or payload declaring more levels than this is malformed rather than large. Decoders bound a declared mip count against it before reserving.