xiph / rav1e

The fastest and safest AV1 encoder.
BSD 2-Clause "Simplified" License
3.73k stars 253 forks source link

Replace cdf! macro with const fns #3334

Closed FreezyLemon closed 10 months ago

FreezyLemon commented 10 months ago

Notable changes:

The code for cdf_2d, cdf_3d etc. is a little messy. But it's the best way I found to keep these const without some sort of macroized implementation (which seems a bit overkill for just 5 similar functions).

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d555dc8) 88.48% compared to head (d57026b) 88.52%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3334 +/- ## ========================================== + Coverage 88.48% 88.52% +0.04% ========================================== Files 88 89 +1 Lines 28231 28334 +103 ========================================== + Hits 24981 25084 +103 Misses 3250 3250 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.