drop the dead code and close the gaps in the verification gate
This commit is contained in:
@@ -635,8 +635,7 @@ fn gif_shrink_factor(mode: GifBudgetMode, ratio: f64) -> f64 {
|
||||
GifBudgetMode::Balanced => {
|
||||
// Split the required reduction between resolution and fps so we
|
||||
// reduce both proportionally rather than halving resolution alone.
|
||||
let half = 0.5_f64;
|
||||
(ratio * (1.0 - half) + ratio.sqrt() * half).clamp(0.1, 1.0)
|
||||
(ratio * 0.5 + ratio.sqrt() * 0.5).clamp(0.1, 1.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user