Skip to main content

layer_rows

Function layer_rows 

Source
pub fn layer_rows(reports: &[Value]) -> Result<Vec<SpreadRow>, SpreadError>
Expand description

The spread rows of the numbers of layer reports, one report per render.

A number that some report lacks, or holds as null, gets no row: it has no value to compare in that render. The floor of a level in dB is LEVEL_FLOOR_DB; any other unit takes the float32 resolution of the largest value, as the reports carry estimates made in float32 audio, and at least the smallest normal float32, for a value that every render holds at 0.

ยงErrors

Returns SpreadError::Runs for fewer than MIN_RUNS reports and SpreadError::UnknownUnit for a field with no known unit.