| 452 | } |
| 453 | |
| 454 | static constexpr int ratePercentToLineDuration(int ratePercent) |
| 455 | { |
| 456 | // See SpectrumOverlayMenu.cpp: the rate control value is intentionally sent |
| 457 | // directly as line_duration. The tested behavior is 1 slowest, 100 fastest. |
| 458 | return std::clamp(ratePercent, |
| 459 | kWaterfallRatePercentMin, |
| 460 | kWaterfallRatePercentMax); |
| 461 | } |
| 462 | |
| 463 | static float clampedCatmullRom(float p0, float p1, float p2, float p3, float t) |
| 464 | { |
no outgoing calls
no test coverage detected