FastLED 3.10.6
Loading...
Searching...
No Matches

◆ coverageFloorApplies()

bool fl::audio::fft::detail::coverageFloorApplies ( u32 fftMag,
u32 cqMag,
u32 localCqMax )
inline

CQ_OCTAVE coverage supplement decision (FastLED#4301/#4540), integer form used in FIXED16: the full-rate FFT floor (fftMag / 50) replaces a CQ band's magnitude cqMag only when no CQ band within one FFT main lobe detected energy (localCqMax < 20) and the floor is strictly larger.

Widened to u64 so no u32 input can overflow.

Definition at line 62 of file fft_impl.h.

63 {
64 return localCqMax < 20u &&
65 static_cast<u64>(fftMag) > static_cast<u64>(cqMag) * 50u;
66}
fl::u64 u64
Definition stdint.h:220

References coverageFloorApplies(), and fl::FL_NO_EXCEPT.

Referenced by coverageFloorApplies(), and fl::audio::fft::Context::runOctaveWise().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: