Skip to content

Commit

Permalink
Restore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Dec 1, 2024
1 parent 5b19c5b commit 7bfaa49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ impl Default for AdaptiveFilterType {
}

fn filter_paeth_decode(a: u8, b: u8, c: u8) -> u8 {
// Decoding optimizes better with this algorithm than with `filter_paeth()`
//
// This formulation looks very different from the reference in the PNG spec, but is
// actually equivalent and has favorable data dependencies and admits straightforward
// generation of branch-free code, which helps performance significantly.
Expand Down

0 comments on commit 7bfaa49

Please sign in to comment.