sdroege / ebur128

Implementation of the EBU R128 loudness standard
MIT License
99 stars 16 forks source link

Get rid of unsafe code in Histogram handling #29

Closed sdroege closed 4 years ago

sdroege commented 4 years ago

Instead generate the histogram energies/boundaries tables statically via a small application and include their values statically.

This has no measurable impact on performance.

Once f64::powf() becomes a const function we can get rid of this entirely and have it all generated at compile-time.


Alternative to https://github.com/sdroege/ebur128/pull/28