Browse Source
Update src/ImageSharp/Formats/Webp/Lossless/HistogramEncoder.cs
Co-authored-by: Anton Firszov <antonfir@gmail.com>
pull/2546/head
James Jackson-South
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/ImageSharp/Formats/Webp/Lossless/HistogramEncoder.cs
|
|
|
@ -383,8 +383,7 @@ internal static class HistogramEncoder |
|
|
|
idx2 = mappings[idx2]; |
|
|
|
|
|
|
|
// Calculate cost reduction on combination.
|
|
|
|
double currCost = 0; |
|
|
|
currCost = HistoPriorityListPush(histoPriorityList, maxSize, histograms, idx1, idx2, bestCost, stats, bitsEntropy); |
|
|
|
double currCost = HistoPriorityListPush(histoPriorityList, maxSize, histograms, idx1, idx2, bestCost, stats, bitsEntropy); |
|
|
|
|
|
|
|
// Found a better pair?
|
|
|
|
if (currCost < 0) |
|
|
|
|