From 8599ad7e5f326ac37e3fcfaf5355574cbda0457f Mon Sep 17 00:00:00 2001 From: Kornel Date: Mon, 1 May 2023 01:30:32 +0100 Subject: [PATCH] Fix overly dithered frames with low motion and very few colors --- Cargo.lock | 18 ++++-------------- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 35dd3a4..6209f6b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -402,12 +402,11 @@ checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" [[package]] name = "imagequant" -version = "4.1.1" +version = "4.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f332f82fc531b53cffa3181c14f7beb5b6c33932d68bb0c2fa4fd583553fca64" +checksum = "fc3c62f251799ae51bbd7a94fc00a83fcb796d8dd14876280e3063e8341138dc" dependencies = [ "arrayvec", - "noisy_float", "num_cpus", "once_cell", "rayon", @@ -536,15 +535,6 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308d96db8debc727c3fd9744aac51751243420e46edf401010908da7f8d5e57c" -[[package]] -name = "noisy_float" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978fe6e6ebc0bf53de533cd456ca2d9de13de13856eda1518a285d7705a213af" -dependencies = [ - "num-traits", -] - [[package]] name = "nom" version = "7.1.3" @@ -691,9 +681,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.37.17" +version = "0.37.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc809f704c03a812ac71f22456c857be34185cac691a4316f27ab0f633bb9009" +checksum = "8bbfc1d1c7c40c01715f47d71444744a81669ca84e8b63e25a55e169b1f86433" dependencies = [ "bitflags", "errno", diff --git a/Cargo.toml b/Cargo.toml index 1eda466..76a7aa2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ gifsicle = { version = "1.93.0", optional = true } clap = { version = "4.2.5", features = ["cargo"], optional = true } gif = { version = "0.12.0", default-features = false, features = ["std", "raii_no_panic"] } gif-dispose = "4.0.0" -imagequant = "4.1.1" +imagequant = "4.2.0" imgref = "1.9.4" lodepng = { version = "3.7.2", optional = true } pbr = { version = "1.1.1", optional = true }